2006-02-25 20:50:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
2010-12-18 20:55:55 +00:00
|
|
|
// 1.19.0.0 Hard Disk Status/Indicator Light
|
|
|
|
#define HD_LED 1
|
|
|
|
|
|
|
|
// Keyboard -- keystroke type
|
|
|
|
enum {NOT_ASCII=0, ASCII};
|
2006-02-25 20:50:29 +00:00
|
|
|
|
2006-07-05 21:23:13 +00:00
|
|
|
// 3D Border
|
2009-02-17 02:12:39 +00:00
|
|
|
#define VIEWPORTX 5
|
|
|
|
#define VIEWPORTY 5
|
2006-07-05 21:23:13 +00:00
|
|
|
|
2009-02-17 02:12:39 +00:00
|
|
|
// 560 = Double Hi-Res
|
|
|
|
// 384 = Doule Scan Line
|
|
|
|
#define FRAMEBUFFER_W 560
|
|
|
|
#define FRAMEBUFFER_H 384
|
2008-08-31 04:31:35 +00:00
|
|
|
|
2009-02-16 19:11:57 +00:00
|
|
|
// Direct Draw -- For Full Screen
|
2009-02-17 02:12:39 +00:00
|
|
|
extern LPDIRECTDRAW g_pDD;
|
|
|
|
extern LPDIRECTDRAWSURFACE g_pDDPrimarySurface;
|
|
|
|
extern IDirectDrawPalette* g_pDDPal;
|
2009-02-16 19:11:57 +00:00
|
|
|
|
2006-07-02 09:56:50 +00:00
|
|
|
// Win32
|
2009-02-17 02:12:39 +00:00
|
|
|
extern HWND g_hFrameWindow;
|
|
|
|
extern BOOL g_bIsFullScreen;
|
2014-07-27 21:31:00 +00:00
|
|
|
extern BOOL g_bConfirmReboot; // saved PageConfig REGSAVE
|
2011-02-20 18:59:53 +00:00
|
|
|
extern BOOL g_bMultiMon;
|
2009-02-17 02:12:39 +00:00
|
|
|
|
|
|
|
// Emulator
|
|
|
|
extern bool g_bFreshReset;
|
2014-08-13 20:30:35 +00:00
|
|
|
extern std::string PathFilename[2];
|
2009-02-17 02:12:39 +00:00
|
|
|
extern bool g_bScrollLock_FullSpeed;
|
|
|
|
extern int g_nCharsetType;
|
|
|
|
|
|
|
|
// Prototypes
|
|
|
|
void CtrlReset();
|
|
|
|
|
2012-12-29 14:53:52 +00:00
|
|
|
void FrameCreateWindow(void);
|
2009-02-17 02:12:39 +00:00
|
|
|
HDC FrameGetDC ();
|
|
|
|
HDC FrameGetVideoDC (LPBYTE *,LONG *);
|
2014-07-29 14:56:55 +00:00
|
|
|
void FrameRefreshStatus (int, bool bUpdateDiskStatus = true );
|
2009-02-17 02:12:39 +00:00
|
|
|
void FrameRegisterClass ();
|
|
|
|
void FrameReleaseDC ();
|
|
|
|
void FrameReleaseVideoDC ();
|
|
|
|
void FrameSetCursorPosByMousePos();
|
2012-12-29 14:53:52 +00:00
|
|
|
int GetViewportScale(void);
|
2013-03-07 23:23:26 +00:00
|
|
|
int SetViewportScale(int nNewScale);
|
2012-12-29 14:53:52 +00:00
|
|
|
void GetViewportCXCY(int& nViewportCX, int& nViewportCY);
|
2014-06-26 21:44:02 +00:00
|
|
|
bool GetFullScreen32Bit(void);
|
|
|
|
void SetFullScreen32Bit(bool b32Bit);
|
2009-02-17 02:12:39 +00:00
|
|
|
|
2014-07-24 01:08:52 +00:00
|
|
|
void FrameDrawDiskLEDS( HDC hdc );
|
|
|
|
void FrameDrawDiskStatus( HDC hdc );
|
2014-07-22 01:21:31 +00:00
|
|
|
|
2009-02-17 02:12:39 +00:00
|
|
|
LRESULT CALLBACK FrameWndProc (
|
|
|
|
HWND window,
|
|
|
|
UINT message,
|
|
|
|
WPARAM wparam,
|
|
|
|
LPARAM lparam );
|
|
|
|
|