MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / SetFullScreenViewportScale

Method SetFullScreenViewportScale

source/Windows/WinFrame.cpp:2897–2905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2895}
2896
2897void Win32Frame::SetFullScreenViewportScale(int nNewXScale, int nNewYScale)
2898{
2899 g_nViewportScale = MIN(nNewXScale, nNewYScale); // Not needed in FS mode
2900 g_nViewportCX = nNewXScale * GetVideo().GetFrameBufferBorderlessWidth();
2901 g_nViewportCY = nNewYScale * GetVideo().GetFrameBufferBorderlessHeight();
2902
2903 buttonx = BUTTONX; // NB. macro uses g_nViewportCX
2904 buttony = BUTTONY;
2905}
2906
2907void Win32Frame::SetupTooltipControls(void)
2908{

Callers

nothing calls this directly

Tested by

no test coverage detected