DXGL r712 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r711‎ | r712 | r713 >
Date:07:52, 2 June 2017
Author:admin
Status:new
Tags:
Comment:
Add first pass scaling to windowed modes.
Modified paths:
  • /ddraw/glDirectDraw.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDraw.cpp
@@ -2175,8 +2175,10 @@
21762176 case 2:
21772177 case 3:
21782178 case 4: // Forced windowed modes
2179 - primaryx = internalx = screenx = dwWidth;
2180 - primaryy = internaly = screeny = dwHeight;
 2179+ primaryx = dwWidth;
 2180+ internalx = screenx = dwWidth * xscale;
 2181+ primaryy = dwHeight;
 2182+ internaly = screeny = dwHeight * yscale;
21812183 internalbpp = screenbpp = dwBPP;
21822184 if (dwRefreshRate) internalrefresh = primaryrefresh = screenrefresh = dwRefreshRate;
21832185 else internalrefresh = primaryrefresh = screenrefresh = currmode.dmDisplayFrequency;