robmcmullen-apple2/src/video.h
Shamus Hammons 978531c95e Fixed keyboard handling, consolidated video handling.
The keyboard handler now properly emulates the //e's 2-key rollover.
However, we might have to add in a key repeat delay if it makes it so
that you can't type on the console anymore. This had to be done because
SDL will throw in key delay if you rely on it's SDL_KEYDOWN message and
this caused many games with keyboard input to be unplayable. Also, we
consolidated the video handling files, as there was very little in
video.cpp and so we moved it into applevideo.cpp and renamed that file
to video.cpp. Things are a lot cleaner as a result of this merge. :-)
2017-06-04 22:28:52 -05:00

45 lines
909 B
C

//
// Apple 2/host video support
//
#ifndef __VIDEO_H__
#define __VIDEO_H__
#include <SDL2/SDL.h>
// These are double the normal width because we use sub-pixel rendering.
//#define VIRTUAL_SCREEN_WIDTH 280
#define VIRTUAL_SCREEN_WIDTH 560
//#define VIRTUAL_SCREEN_HEIGHT 192
#define VIRTUAL_SCREEN_HEIGHT 384
// Global variables (exported)
extern bool flash;
extern bool textMode;
extern bool mixedMode;
extern bool displayPage2;
extern bool hiRes;
extern bool alternateCharset;
extern bool col80Mode;
extern SDL_Renderer * sdlRenderer;
// Functions (exported)
//void SetupBlurTable(void);
void TogglePalette(void);
void CycleScreenTypes(void);
void SpawnMessage(const char * text, ...);
bool InitVideo(void);
void VideoDone(void);
void RenderAppleScreen(SDL_Renderer *);
void ToggleFullScreen(void);
// Exported crap
//extern uint32_t * scrBuffer;
//extern int scrPitch;
#endif // __VIDEO_H__