From 70f910cbe19e9c7320a56fa48669f7a5e9df00e6 Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Tue, 24 Feb 2004 22:17:08 +0000 Subject: Random 640x480 tweaks svn-id: r13035 --- backends/wince/CEDevice.cpp | 2 +- backends/wince/wince-sdl.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'backends/wince') diff --git a/backends/wince/CEDevice.cpp b/backends/wince/CEDevice.cpp index d0236cbf72..b9fd8e789d 100644 --- a/backends/wince/CEDevice.cpp +++ b/backends/wince/CEDevice.cpp @@ -39,7 +39,7 @@ bool CEDevice::hasDesktopResolution() { } bool CEDevice::hasWideResolution() { - return (GetSystemMetrics(SM_CXSCREEN) >= 640 && GetSystemMetrics(SM_CYSCREEN) >= 480); + return (GetSystemMetrics(SM_CXSCREEN) >= 640 || GetSystemMetrics(SM_CYSCREEN) >= 640); } bool CEDevice::hasSmartphoneResolution() { diff --git a/backends/wince/wince-sdl.cpp b/backends/wince/wince-sdl.cpp index 58227d78b1..df2dbe574c 100644 --- a/backends/wince/wince-sdl.cpp +++ b/backends/wince/wince-sdl.cpp @@ -437,10 +437,10 @@ void OSystem_WINCE3::load_gfx_mode() { } // Check if the scaler can be accepted, if not get back to normal scaler - if (_scaleFactor && (_scaleFactor * _screenWidth > GetSystemMetrics(SM_CXSCREEN) && + if (_scaleFactor && ((_scaleFactor * _screenWidth > GetSystemMetrics(SM_CXSCREEN) && _scaleFactor * _screenWidth > GetSystemMetrics(SM_CYSCREEN)) || (_scaleFactor * _screenHeight > GetSystemMetrics(SM_CXSCREEN) && - _scaleFactor * _screenHeight > GetSystemMetrics(SM_CYSCREEN))) { + _scaleFactor * _screenHeight > GetSystemMetrics(SM_CYSCREEN)))) { _scaleFactor = 1; _scaler_proc = Normal1x; } -- cgit v1.2.3