PDA

View Full Version : make fullscreen 1280x1024



gmatt
07-23-2007, 12:12 AM
Hello when I try the code


CL_DisplayWindow window("KillerBomberman-United", 1024, 768, true); I get fullscreen mode in this resolution. When I try


CL_DisplayWindow window("KillerBomberman-United", 1280, 1024, true); the resolution sets to the right size, but in windowed mode. How do I get it to be in fullscreen mode in this resolution?

sphair
07-23-2007, 08:05 AM
It may select a fullscreen your gfxcard doesn't support - maybe wrong refreshrate.

Use CL_DisplayMode::get_display_modes() and try using one from that list. You have to use CL_DisplayWindowDescription to set a proper refresh mode and then use that with CL_DisplayWindow(desc);

gmatt
07-25-2007, 03:31 AM
I tried the following



CL_DisplayWindowDescription dwd;
std::vector<CL_DisplayMode> v = CL_DisplayMode::get_display_modes();
std::vector<CL_DisplayMode>::iterator i;
i = v.begin();
CL_DisplayMode dm = *i;
dwd.set_fullscreen(true);
dwd.set_refresh_rate(dm.get_refresh_rate());
dwd.set_title("KillerBomberman-United");
dwd.set_size(dm.get_resolution());
CL_DisplayWindow window(dwd);



which should set my display to to 1280x1024 with the right refresh rate I believe but it doesn't. Maybe I will try other resolutions other than the first one in the vector list.

sphair
07-25-2007, 07:07 AM
Maybe try something like:

CL_DisplayWindowDescription dwd;
dwd.set_fullscreen(true);
dwd.set_refresh_rate(60); // This might be the one causing problems
dwd.set_title("KillerBomberman-United");
dwd.set_size(CL_Rect(1280, 1024));

If not, try lower resolutions.

gmatt
07-25-2007, 08:34 AM
Thanks, but no luck. The screen goes entirely black for a few seconds as if its ready to go full-screen then I get windowed mode, however, the mouse is locked in that window, that is I can't move the mouse pointer out.