![]() |
|
No windowed mode on Raspberry Pi Model B+? |
BitCruncher
Member #11,279
August 2009
![]() |
Hey guys, I built allegro 5.2.4 for my pi using gcc 7.2.0, and it seems I can't get a windowed display going. No matter what I pass to al_create_display, it just goes straight to fullscreen mode. Then, I saw this thread. So does allegro still not support Raspbian windowed mode? 1#include <allegro5/allegro.h>
2
3
4int main(int argc, char** argv)
5{
6 al_init();
7 al_install_keyboard();
8 ALLEGRO_DISPLAY* display = al_create_display(400, 300);
9 al_set_target_backbuffer(display);
10 ALLEGRO_KEYBOARD_STATE kbState;
11 while(0)
12 {
13 al_get_keyboard_state(&kbState);
14 if(al_key_down(&kbState, ALLEGRO_KEY_ESCAPE))
15 {
16 break;
17 }
18 al_clear_to_color(al_map_rgb(0, 0, 0));
19 al_flip_display();
20 }
21 al_destroy_display(display);
22 return 0;
23}
|
|