DXGL r746 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r745
|
r746
|
r747
>
Date:
07:55, 12 September 2017
Author:
admin
Status:
new
Tags:
Comment:
Prevent AddDoubledResolutions from adding duplicate modes.
Modified paths:
/ddraw/glDirectDraw.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirectDraw.cpp
—
—
@@ -520,7 +520,10 @@
521
521
if(dxglcfg.AddModes && (dxglcfg.scaler != 0)) AddExtraResolutions(&modes,&modenum); // FIXME: Add modes by bitmask
522
522
if (dxglcfg.AddModes && (_isnan(dxglcfg.postsizex) || _isnan(dxglcfg.postsizey) ||
523
523
(dxglcfg.postsizex < 0.25f) || (dxglcfg.postsizey < 0.25f)))
524
+ {
524
525
AddDoubledResolutions(&modes, &modenum);
526
+ DiscardDuplicateModes(&modes, &modenum);
527
+ }
525
528
modenum--;
526
529
switch(dxglcfg.SortModes)
527
530
{
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