diff --git a/source/Frame.cpp b/source/Frame.cpp index aa87f0f6..5b521d09 100644 --- a/source/Frame.cpp +++ b/source/Frame.cpp @@ -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; diff --git a/source/Frame.h b/source/Frame.h index 47af25a1..357177c7 100644 --- a/source/Frame.h +++ b/source/Frame.h @@ -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]; diff --git a/source/Video.cpp b/source/Video.cpp index 41f87868..ec0e3240 100644 --- a/source/Video.cpp +++ b/source/Video.cpp @@ -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(); }