I've recently tried the gapidraw demo and I run the PC version, the window was in 480x640 resolution, how come it's not in 240x320? Can someone help me change it to 240x320?
Many thanks,
Erick

Hi Erick,
It depends what demo you are referring to. The demos that use CGapiApplication (simple, minimal, plasma and collision mask) have the following lines of code (in the .cpp file in their "common" folder:
#ifdef _DEBUG
config.dwDisplayFlags |= GDOPENDISPLAY_SCALEX2;
#else
config.dwDisplayFlags |= GDOPENDISPLAY_FULLSCREEN;
#endif
The "SCALEX2" scales the display x 2 in both horizontal and vertical mode. To disable this, simply replace the above lines with:
#ifndef _DEBUG
config.dwDisplayFlags |= GDOPENDISPLAY_FULLSCREEN;
#endif
If you are referring to the MFC demo, just open the file GenericThread.CPP and search for OpenDisplay. Replace the following line:
hr = m_display.OpenDisplay(hParentFrame, GDOPENDISPLAY_SCALEX2);
with
hr = m_display.OpenDisplay(hParentFrame, NULL);
/Johan