Jump to content
  • Advertisement
Sign in to follow this  
Toshi Brown

Fullscreen functionality

This topic is 2154 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys,


I am using C++ with the Allegro 5 library for my project, and I have come up against something that I cant find the solution to, it seems easy so perhaps someone could tell me the answer.


At the moment I am creating a display matching my screen resolution, 1920 x 1080, which gives me an illusion of fullscreen - but it is not true fullscreen as the various windows bars still overlap it.


My question is this: how can I enable proper fullscreen functionality?


And a follow up, for computers that wont support 1920 x 1080, can I force the program, when it runs, to choose the highest supported resolution instead?




Share this post

Link to post
Share on other sites

When you're calling al_set_new_display_flags (assuming you are), are you specifying the ALLEGRO_FULLSCREEN flag?



al_set_new_display_flags(someFlags  | ALLEGRO_FULLSCREEN);

Where someFlags is whatever flags you want other than fullscreen, such as ALLEGRO_OPENGL, ALLEGRO_DIRECT3D, or ALLEGRO_OPENGL_3_0.


By the way... google and documentation is your friend smile.png.



I found this question on allegro 5 and creating a fullscreen resolution, which has the same resolution as the user's monitor, which you might be interested in.

Edited by pinebanana

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!