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,[);
Use GFX_AUTODETECT_FULLSCREEN instead of GFX_AUTODETECT_WINDOWED
I need windowed mode but in maximum size
Use Platform Specific created windows.
That would not be a good option for mes. Is there a way in allegro wer you can get the current screen resolution?
get_desktop_resolution
You won't necessarilly be able to get a maximized window, however. The size you pass to set_gfx_mode is the size of your drawing area, excluding the window borders. You can't gaurantee the size of the window borders, and certain systems won't let you create a window bigger than the screen.
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".
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)
--- http://www.pixelships.com