src/video/win32_v.cpp
changeset 10985 ae131ef2cc8f
parent 10983 e734f891d1f6
equal deleted inserted replaced
10984:05660d38d316 10985:ae131ef2cc8f
   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