src/video/win32_v.cpp
changeset 9535 0250b88672d7
parent 9533 e8b86b70c5f6
child 9898 75347c78b276
equal deleted inserted replaced
9534:088ad1af3261 9535:0250b88672d7
   738 		if (dm.dmBitsPerPel == BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() &&
   738 		if (dm.dmBitsPerPel == BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() &&
   739 				dm.dmPelsWidth >= 640 && dm.dmPelsHeight >= 480) {
   739 				dm.dmPelsWidth >= 640 && dm.dmPelsHeight >= 480) {
   740 			uint j;
   740 			uint j;
   741 
   741 
   742 			for (j = 0; j < n; j++) {
   742 			for (j = 0; j < n; j++) {
   743 				if (_resolutions[j].width == dm.dmPelsWidth && _resolutions[j].height == dm.dmPelsHeight) break;
   743 				if (_resolutions[j].width == (int)dm.dmPelsWidth && _resolutions[j].height == (int)dm.dmPelsHeight) break;
   744 			}
   744 			}
   745 
   745 
   746 			/* In the previous loop we have checked already existing/added resolutions if
   746 			/* In the previous loop we have checked already existing/added resolutions if
   747 			 * they are the same as the new ones. If this is not the case (j == n); we have
   747 			 * they are the same as the new ones. If this is not the case (j == n); we have
   748 			 * looped all and found none, add the new one to the list. If we have reached the
   748 			 * looped all and found none, add the new one to the list. If we have reached the