DXGL r712 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
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 @@
2176
2176
case 2:
2177
2177
case 3:
2178
2178
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;
2181
2183
internalbpp = screenbpp = dwBPP;
2182
2184
if (dwRefreshRate) internalrefresh = primaryrefresh = screenrefresh = dwRefreshRate;
2183
2185
else internalrefresh = primaryrefresh = screenrefresh = currmode.dmDisplayFrequency;
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version