|
Fullscreen |
godzilla69
Member #15,495
February 2014
|
if (value == 1) Why doesn't this work? I'm trying to do messagebox asking for fullscreen (yes/no) |
torhu
Member #2,727
September 2002
|
You have to call al_create_display too |
godzilla69
Member #15,495
February 2014
|
so here is my source code: The program is in progress as you can see.:) I'm beginner and just training. #include<allegro5\allegro.h> #define ScreenWidth 800 int main () ALLEGRO_DISPLAY *display; if(!al_init()) std::cout << value << std::endl; al_rest(3.0); |
Listopad
Member #15,486
February 2014
|
1...
2if (value == 1)
3{
4al_set_new_display_flags(ALLEGRO_FULLSCREEN);
5ALLEGRO_DISPLAY_MODE disp_data;
6al_get_display_mode(N, &disp_data);
7display = al_create_display(disp_data.width, disp_data.height);
8}
9...
al_get_display_mode: |
godzilla69
Member #15,495
February 2014
|
nvm i got it working Thanks for helping! BTW, what does that number mean(N)? al_get_display_mode(N, &disp_data); |
jmasterx
Member #11,410
October 2009
|
It is the index. There are many display modes. You need to fetch them 1 at a time. Agui GUI API -> https://github.com/jmasterx/Agui |
godzilla69
Member #15,495
February 2014
|
Alright, Thank you very much |
|