How to full screen

Hi, how do i make the program running in full screen? My screen is 12800x800, is it necessary ?
Argh. Doesn't anyone bother to read the existing postings just a few titles down?
http://www.cplusplus.com/forum/beginner/9307/
thanks, i hadnt seen it
still cant do it. Im using vista too. they say that in vista you cant make it running in full screen, but i have an application which runs.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <allegro.h>

int main()
{

int x = 10;
int y = 10;
 
allegro_init();
install_keyboard();
set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);
    
while ( !key[KEY_ESC] )
   {
        clear_keybuf();
        
        acquire_screen();
        
        textout_ex( screen, font, " ", x, y, makecol( 0, 0, 0), makecol( 0, 0, 0) );
        
        if (key[KEY_UP]) --y;        
        else if (key[KEY_DOWN]) ++y;    
        else if (key[KEY_RIGHT]) ++x;
        else if (key[KEY_LEFT]) --x;

        textout_ex( screen, font, "@", x, y, makecol( 255, 0, 0), makecol( 0, 0, 0) );
        
        release_screen();
        
        rest(50);

    }    
    
    return 0;
    
}

END_OF_MAIN();


However, i copied the set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0); to my application and it didnt work.
Please help..
Topic archived. No new replies allowed.