mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-22 01:31:25 +00:00
Fix Ctrl-F6 2x zoom
This commit is contained in:
parent
d75cc2b330
commit
e07d80898f
@ -62,8 +62,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#define MAGICY 5 // 3D border between Apple window & Title bar
|
||||
|
||||
static const int kDEFAULT_VIEWPORT_SCALE = 2;
|
||||
static int g_nViewportCX = FRAMEBUFFER_W * kDEFAULT_VIEWPORT_SCALE;
|
||||
static int g_nViewportCY = FRAMEBUFFER_H * kDEFAULT_VIEWPORT_SCALE;
|
||||
int g_nViewportCX = FRAMEBUFFER_W * kDEFAULT_VIEWPORT_SCALE;
|
||||
int g_nViewportCY = FRAMEBUFFER_H * kDEFAULT_VIEWPORT_SCALE;
|
||||
static int g_nViewportScale = kDEFAULT_VIEWPORT_SCALE; // saved REGSAVE
|
||||
static int g_nMaxViewportScale = kDEFAULT_VIEWPORT_SCALE;
|
||||
|
||||
|
@ -30,9 +30,12 @@
|
||||
// Win32
|
||||
extern HWND g_hFrameWindow;
|
||||
extern BOOL g_bIsFullScreen;
|
||||
extern int g_nViewportCX;
|
||||
extern int g_nViewportCY;
|
||||
extern BOOL g_bConfirmReboot; // saved PageConfig REGSAVE
|
||||
extern BOOL g_bMultiMon;
|
||||
|
||||
|
||||
// Emulator
|
||||
extern bool g_bFreshReset;
|
||||
extern std::string PathFilename[2];
|
||||
|
@ -1263,10 +1263,10 @@ void VideoRefreshScreen ( int bVideoModeFlags )
|
||||
StretchBlt(
|
||||
hFrameDC,
|
||||
0,0,
|
||||
FRAMEBUFFER_W,FRAMEBUFFER_H,
|
||||
g_nViewportCX,g_nViewportCY, //dst
|
||||
g_hDeviceDC,
|
||||
0,0,
|
||||
FRAMEBUFFER_W,FRAMEBUFFER_H,
|
||||
FRAMEBUFFER_W,FRAMEBUFFER_H, // src
|
||||
SRCCOPY );
|
||||
GdiFlush();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user