Fix Ctrl-F6 2x zoom
This commit is contained in:
parent
d75cc2b330
commit
e07d80898f
3 changed files with 7 additions and 4 deletions
|
@ -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
|
#define MAGICY 5 // 3D border between Apple window & Title bar
|
||||||
|
|
||||||
static const int kDEFAULT_VIEWPORT_SCALE = 2;
|
static const int kDEFAULT_VIEWPORT_SCALE = 2;
|
||||||
static int g_nViewportCX = FRAMEBUFFER_W * kDEFAULT_VIEWPORT_SCALE;
|
int g_nViewportCX = FRAMEBUFFER_W * kDEFAULT_VIEWPORT_SCALE;
|
||||||
static int g_nViewportCY = FRAMEBUFFER_H * kDEFAULT_VIEWPORT_SCALE;
|
int g_nViewportCY = FRAMEBUFFER_H * kDEFAULT_VIEWPORT_SCALE;
|
||||||
static int g_nViewportScale = kDEFAULT_VIEWPORT_SCALE; // saved REGSAVE
|
static int g_nViewportScale = kDEFAULT_VIEWPORT_SCALE; // saved REGSAVE
|
||||||
static int g_nMaxViewportScale = kDEFAULT_VIEWPORT_SCALE;
|
static int g_nMaxViewportScale = kDEFAULT_VIEWPORT_SCALE;
|
||||||
|
|
||||||
|
|
|
@ -30,9 +30,12 @@
|
||||||
// Win32
|
// Win32
|
||||||
extern HWND g_hFrameWindow;
|
extern HWND g_hFrameWindow;
|
||||||
extern BOOL g_bIsFullScreen;
|
extern BOOL g_bIsFullScreen;
|
||||||
|
extern int g_nViewportCX;
|
||||||
|
extern int g_nViewportCY;
|
||||||
extern BOOL g_bConfirmReboot; // saved PageConfig REGSAVE
|
extern BOOL g_bConfirmReboot; // saved PageConfig REGSAVE
|
||||||
extern BOOL g_bMultiMon;
|
extern BOOL g_bMultiMon;
|
||||||
|
|
||||||
|
|
||||||
// Emulator
|
// Emulator
|
||||||
extern bool g_bFreshReset;
|
extern bool g_bFreshReset;
|
||||||
extern std::string PathFilename[2];
|
extern std::string PathFilename[2];
|
||||||
|
|
|
@ -1263,10 +1263,10 @@ void VideoRefreshScreen ( int bVideoModeFlags )
|
||||||
StretchBlt(
|
StretchBlt(
|
||||||
hFrameDC,
|
hFrameDC,
|
||||||
0,0,
|
0,0,
|
||||||
FRAMEBUFFER_W,FRAMEBUFFER_H,
|
g_nViewportCX,g_nViewportCY, //dst
|
||||||
g_hDeviceDC,
|
g_hDeviceDC,
|
||||||
0,0,
|
0,0,
|
||||||
FRAMEBUFFER_W,FRAMEBUFFER_H,
|
FRAMEBUFFER_W,FRAMEBUFFER_H, // src
|
||||||
SRCCOPY );
|
SRCCOPY );
|
||||||
GdiFlush();
|
GdiFlush();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue