Fix Ctrl-F6 2x zoom

This commit is contained in:
michaelangel007 2015-01-01 17:19:49 -08:00
parent d75cc2b330
commit e07d80898f
3 changed files with 7 additions and 4 deletions

View File

@ -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;

View File

@ -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];

View File

@ -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();
}