AppleWin/source/Frame.h

84 lines
2.3 KiB
C
Raw Normal View History

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
// 3D Border
2009-02-17 02:12:39 +00:00
#define VIEWPORTX 5
#define VIEWPORTY 5
2009-02-17 02:12:39 +00:00
// 560 = Double Hi-Res
// 384 = Double Scan Line
#define FRAMEBUFFER_BORDERLESS_W 560
#define FRAMEBUFFER_BORDERLESS_H 384
2014-12-31 22:13:36 +00:00
// NTSC_BEGIN
#if 0
// TC: No good as NTSC render code writes to border area:
// . NTSC.cpp: updateVideoScannerHorzEOL(): "NOTE: This writes out-of-bounds for a 560x384 framebuffer"
#define BORDER_W 0
#define BORDER_H 0
#define FRAMEBUFFER_W FRAMEBUFFER_BORDERLESS_W
#define FRAMEBUFFER_H FRAMEBUFFER_BORDERLESS_H
2014-12-31 22:13:36 +00:00
#else
#define BORDER_W 20
#define BORDER_H 18
#define FRAMEBUFFER_W (FRAMEBUFFER_BORDERLESS_W + BORDER_W*2)
#define FRAMEBUFFER_H (FRAMEBUFFER_BORDERLESS_H + BORDER_H*2)
2014-12-31 22:13:36 +00:00
#endif
// NTSC_END
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;
2015-01-03 22:13:55 +00:00
extern int g_nDDFullScreenW;
extern int g_nDDFullScreenH;
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;
2015-01-02 01:19:49 +00:00
extern int g_nViewportCX;
extern int g_nViewportCY;
extern BOOL g_bConfirmReboot; // saved PageConfig REGSAVE
extern BOOL g_bMultiMon;
2009-02-17 02:12:39 +00:00
2015-01-02 01:19:49 +00:00
2009-02-17 02:12:39 +00:00
// Emulator
extern bool g_bFreshReset;
extern std::string PathFilename[2];
2009-02-17 02:12:39 +00:00
extern bool g_bScrollLock_FullSpeed;
extern int g_nCharsetType;
2009-02-17 02:12:39 +00:00
// Prototypes
void CtrlReset();
void FrameCreateWindow(void);
2009-02-17 02:12:39 +00:00
HDC FrameGetDC ();
HDC FrameGetVideoDC (LPBYTE *,LONG *);
void FrameRefreshStatus (int, bool bUpdateDiskStatus = true );
2009-02-17 02:12:39 +00:00
void FrameRegisterClass ();
void FrameReleaseDC ();
void FrameReleaseVideoDC ();
void FrameSetCursorPosByMousePos();
int GetViewportScale(void);
int SetViewportScale(int nNewScale, bool bForce = false);
void GetViewportCXCY(int& nViewportCX, int& nViewportCY);
bool GetFullScreen32Bit(void);
void SetFullScreen32Bit(bool b32Bit);
2016-03-21 23:48:02 +00:00
void FrameUpdateApple2Type(void);
2009-02-17 02:12:39 +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 );
2016-07-26 21:33:45 +00:00
int GetFullScreenOffsetX(void);
int GetFullScreenOffsetY(void);