I am guessing that 1280x800 is the overall size of your display? WinBGIm uses a standard resizeable GUI window for display, so you cannot set it to the overall size of your display because you have to take into account the width of title-bar, and the window resize borders.
I am guessing therefore that WinBGIm defaults to 640x480 if you try to set a window that is not displayable. That's just a guess however.
The proposition is supported by the functionality of the getmaxwidth() and getmaxheight() functions, which specify the maximum dimensions you can use.
Hi I'm trying to learn how to do graphics using dev cpp winGBIm but I can't get the right resolution 1280800 ... instead I get 640480.
What I'm doing is creating a new project on dev_cpp and selecting winBGIm example.
When I run it I get a 640480 resolution.
The status report sais graphic mode 640480.
I want to change this to 1280*800, how can I do this?
RG
Thanks
I am guessing that 1280x800 is the overall size of your display? WinBGIm uses a standard resizeable GUI window for display, so you cannot set it to the overall size of your display because you have to take into account the width of title-bar, and the window resize borders.
I am guessing therefore that WinBGIm defaults to 640x480 if you try to set a window that is not displayable. That's just a guess however.
The proposition is supported by the functionality of the getmaxwidth() and getmaxheight() functions, which specify the maximum dimensions you can use.
http://www.cs.colorado.edu/~main/cs1300/doc/bgi/getmaxheight.html
http://www.cs.colorado.edu/~main/cs1300/doc/bgi/getmaxwidth.html
Clifford