|
GFX_AUTODETECT_WINDOWED+maximize |
thirdy
Member #8,409
March 2007
|
Hi! How do you make your program run at maximized window? int monitorx=getmaxx();//these 2 functions would work in Mr.Borlands graphics.h int monitory=getmaxy(); set_gfx_mode(GFX_AUTODETECT_WINDOWED,monitorx,monitory,0,[);
|
Richard Phipps
Member #1,632
November 2001
|
Use GFX_AUTODETECT_FULLSCREEN instead of GFX_AUTODETECT_WINDOWED |
thirdy
Member #8,409
March 2007
|
I need windowed mode but in maximum size |
GullRaDriel
Member #3,861
September 2003
|
Use Platform Specific created windows. "Code is like shit - it only smells if it is not yours" |
thirdy
Member #8,409
March 2007
|
That would not be a good option for mes. Is there a way in allegro wer you can get the current screen resolution? |
Kitty Cat
Member #2,815
October 2002
|
get_desktop_resolution The best thing to do would be to use a standard windowed resolution (640x480 or 800x600 or something), and switch to a fullscreen mode when you want to "maximize". -- |
Kris Asick
Member #1,424
July 2001
|
You have to use your own custom window with Allegro in order to make the window both resizable and able to use the maximize button. In the allegro\tests\win folder is a set of files called dxwindow which will demonstrate how to properly do this. (As there are a number of limitations and things you must do to correctly use your own window with Allegro.) --- Kris Asick (Gemini) --- Kris Asick (Gemini) |
|