Allegro window size

I just set up allegro 4.4.2 in visual studio 2010 and when I enter this code
1
2
3
4
5
6
7
8
9
10
11
#include <allegro.h>

int main(){

    allegro_init();
    install_keyboard();
    set_gfx_mode( GFX_AUTODETECT, 240, 280, 0, 0);
    readkey();
    return 0; 
}  
END_OF_MAIN(); 



The allegro window takes up the whole computer screen. I don't recall it doing this when I used Allegro about a year ago. What would cause this?
Anybody? It's kind of annoying...
Well, forgive my ignorance of Allegro, but I believe if you want to set display size you do something like: al_create_display(640, 480)

Otherwise by default it may take up the whole screen? I dunno. That's for version 5 though.

http://wiki.allegro.cc/index.php?title=Allegro_5_Tutorial/Displays

Sorry dude.

Props to you for knowing allegro, shit is tough.
Topic archived. No new replies allowed.