Changeset - r9535:b053d6801b52
[Not reviewed]
master
0 1 0
glx - 16 years ago 2008-06-16 20:16:43
glx@openttd.org
(svn r13539) -Fix (r13537): signed/unsigned warnings
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/video/win32_v.cpp
Show inline comments
 
@@ -737,13 +737,13 @@ static void FindResolutions()
 
	for (i = 0; EnumDisplaySettingsA(NULL, i, &dm) != 0; i++) {
 
		if (dm.dmBitsPerPel == BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() &&
 
				dm.dmPelsWidth >= 640 && dm.dmPelsHeight >= 480) {
 
			uint j;
 

	
 
			for (j = 0; j < n; j++) {
 
				if (_resolutions[j].width == dm.dmPelsWidth && _resolutions[j].height == dm.dmPelsHeight) break;
 
				if (_resolutions[j].width == (int)dm.dmPelsWidth && _resolutions[j].height == (int)dm.dmPelsHeight) break;
 
			}
 

	
 
			/* In the previous loop we have checked already existing/added resolutions if
 
			 * they are the same as the new ones. If this is not the case (j == n); we have
 
			 * looped all and found none, add the new one to the list. If we have reached the
 
			 * maximum amount of resolutions, then quit querying the display */
0 comments (0 inline, 0 general)