DXGL r420 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r419
|
r420
|
r421
>
Date:
23:10, 7 April 2014
Author:
admin
Status:
new
Tags:
Comment:
Fixes to aspect settings.
Modified paths:
/dxglcfg/dxglcfg.cpp
(modified) (
history
)
Diff
[
purge
]
Index: dxglcfg/dxglcfg.cpp
—
—
@@ -261,7 +261,7 @@
262
262
float fract = modf(f, &integer);
263
263
if (fract < 0.0001f) //Handle integer aspects
264
264
{
265
- _itot(integer, aspect, 10);
265
+ _itot((int)integer, aspect, 10);
266
266
_tcscat(aspect, _T(":1"));
267
267
}
268
268
// Finally try from 2 to 1000
—
—
@@ -309,9 +309,9 @@
310
310
else
311
311
{
312
312
FloatToAspect(value, buffer);
313
- SetDlgItemText(hWnd, DlgItem, buffer);
314
313
SendDlgItemMessage(hWnd,DlgItem,CB_SETCURSEL,
315
314
SendDlgItemMessage(hWnd, DlgItem, CB_FINDSTRING, -1, (LPARAM)buffer), 0);
315
+ SetDlgItemText(hWnd, DlgItem, buffer);
316
316
}
317
317
318
318
}
—
—
@@ -541,7 +541,7 @@
542
542
SendDlgItemMessage(hWnd,IDC_ASPECT,CB_ADDSTRING,0,(LPARAM)buffer);
543
543
_tcscpy(buffer,_T("5:4"));
544
544
SendDlgItemMessage(hWnd,IDC_ASPECT,CB_ADDSTRING,0,(LPARAM)buffer);
545
- SendDlgItemMessage(hWnd, IDC_ASPECT, CB_SETCURSEL, cfg->aspect, 0);
545
+ SetAspectCombo(hWnd, IDC_ASPECT, cfg->aspect, cfgmask->aspect, tristate);
546
546
547
547
// highres
548
548
if(cfg->highres) SendDlgItemMessage(hWnd,IDC_HIGHRES,BM_SETCHECK,BST_CHECKED,0);
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