Menu

1280*800 resolution using winGBIm

R G
2009-01-10
2012-09-26
  • R G

    R G - 2009-01-10

    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 640
    480.

    I want to change this to 1280*800, how can I do this?

    RG
    Thanks

     
    • cpns

      cpns - 2009-01-11

      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

       

Log in to post a comment.