Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

get_desktop_resolution(3alleg4) [v7 man page]

get_desktop_resolution(3alleg4) 				  Allegro manual				   get_desktop_resolution(3alleg4)

NAME
get_desktop_resolution - Finds out the desktop resolution. Allegro game programming library. SYNOPSIS
#include <allegro.h> int get_desktop_resolution(int *width, int *height); DESCRIPTION
Finds out the currently selected desktop resolution. You can use this information to avoid creating windows bigger than the current resolu- tion. This is especially important for some windowed drivers which are unable to create windows bigger than the desktop. Each parameter is a pointer to an integer where one dimension of the screen will be stored. Under some OSes, switching to a full screen graphics mode may automatically change the desktop resolution. You have, therefore, to call this function before setting any graphics mode in order to retrieve the real desktop resolution. Example: int width, height; allegro_init(); ... if (get_desktop_resolution(&width, &height) == 0) { /* Got the resolution correctly */ } RETURN VALUE
Returns zero on success, or a negative number if this information is not available or does not apply, in which case the values stored in the variables you provided for `width' and `height' are undefined. SEE ALSO
desktop_color_depth(3alleg4), set_gfx_mode(3alleg4) Allegro version 4.4.2 get_desktop_resolution(3alleg4)

Check Out this Related Man Page

get_desktop_resolution(3alleg4) 				  Allegro manual				   get_desktop_resolution(3alleg4)

NAME
get_desktop_resolution - Finds out the desktop resolution. Allegro game programming library. SYNOPSIS
#include <allegro.h> int get_desktop_resolution(int *width, int *height); DESCRIPTION
Finds out the currently selected desktop resolution. You can use this information to avoid creating windows bigger than the current resolu- tion. This is especially important for some windowed drivers which are unable to create windows bigger than the desktop. Each parameter is a pointer to an integer where one dimension of the screen will be stored. Under some OSes, switching to a full screen graphics mode may automatically change the desktop resolution. You have, therefore, to call this function before setting any graphics mode in order to retrieve the real desktop resolution. Example: int width, height; allegro_init(); ... if (get_desktop_resolution(&width, &height) == 0) { /* Got the resolution correctly */ } RETURN VALUE
Returns zero on success, or a negative number if this information is not available or does not apply, in which case the values stored in the variables you provided for `width' and `height' are undefined. SEE ALSO
desktop_color_depth(3alleg4), set_gfx_mode(3alleg4) Allegro version 4.4.2 get_desktop_resolution(3alleg4)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

eror?

What if... one startup OSX 10.2 for the first time and the only thing that is on the screen is ( sh-2.05a# ). Does anybody know what it mean and what to do with that? What kind of command I have to respond? :confused: (2 Replies)
Discussion started by: heabus
2 Replies

2. UNIX for Dummies Questions & Answers

Free BSD Display Properties?

I'm very new to UNIX and just istalled FreeBSD on my computer. I using the KDE desktop and the resolution is horrible. How do I adjust this. (3 Replies)
Discussion started by: mbrouder
3 Replies

3. UNIX Desktop Questions & Answers

X-window+radeon 9700pro

i can`t configure resolution on my screen:( the resolution is 400*600. but i want more, and when i choose another resolution(1024*768) X don`t want to start? what shall i do? (6 Replies)
Discussion started by: crush
6 Replies

4. UNIX Desktop Questions & Answers

Display resolutions

Hi, I have recently install SUSE 9.1 on my laptop The resolution only comes up in 800x600 i dont get any other options but also is shown as a small box rather than the whole screen. In windows it is fine and covers the full display. I tried to set the dismensions but this doesn't work ... (3 Replies)
Discussion started by: billett05
3 Replies

5. UNIX Desktop Questions & Answers

start windows appl. from unix

Is it possible to start a windows applications such as mail merge in word from a unix machine (sco-unix, digital osf). Why to do this ? Most people known word to create nice documents, but we want to print this documents with our information (name, adresses etc.. like a mailing. This info... (9 Replies)
Discussion started by: Dplancke
9 Replies

6. Shell Programming and Scripting

hi..

could somebody guide me how to put the unix script output on windows desktop without doing FTP everytime...kinda automation. best rgds (3 Replies)
Discussion started by: Assassin
3 Replies

7. UNIX for Advanced & Expert Users

view remote linux desktop on my windows machine

Hi, is there anyway i can view a remote linux desktop on my windows desktop? i am aware that X11 can see 'certain screens'. For eg if i type 'xclock &' and i have a client running on my windows, i can see the clock. If i am interested to see the entire desktop of my linux, how can i do it? (4 Replies)
Discussion started by: new2ss
4 Replies

8. UNIX for Advanced & Expert Users

Solaris 10 Desktop resolution

I have a problem with solaris 10 desktop resolution. My resolution is 1680x1050. I want to boot in troubleshooting mode to change this resolution for the root user. Or all users. What is the configuration script. ex: .dtconfig/Xconfig (3 Replies)
Discussion started by: simquest
3 Replies

9. Shell Programming and Scripting

AIX , unix ftp to windows desktop

Hi guys, i want to know if i can make a script to ftp or sftp files from the unix box to my windows desktop or c: drive. I log into the server through Putty, once in the server i run a script which makes a file called disk.log every 30 minutes. i then have to manually copy it to the computer... (2 Replies)
Discussion started by: hassanj
2 Replies

10. UNIX Desktop Questions & Answers

Help with Fixed width File Parsing

I am trying to parse a Fixed width file with data as below. I am trying to assign column values from each record to variables. When I parse the data, the spaces in all coumns are dropped. I would like to retain the spaces as part of the dat stored in the variables. Any help is appreciated. I... (4 Replies)
Discussion started by: sate911
4 Replies

11. UNIX Desktop Questions & Answers

Dual monitors on Ultra80

:confused:How do I configure Solaris 11 to use both my elite 3d cards and monitors to create one big screen? My machine is an Ultra80:confused: (2 Replies)
Discussion started by: vatch23
2 Replies

12. UNIX Desktop Questions & Answers

Cant Set 1024*768 resolution in fedora 11

This is my very first post to the forum ,so if i my mess up here please let me know. Now coming to the problem i am using fedora 11 with a nividia 8600GT graphic card on my desktop, but when i try to change the resolution i am able to select between two resolutions i.e. 800*600 and 640*480. I... (3 Replies)
Discussion started by: rohit_shetty
3 Replies

13. UNIX for Dummies Questions & Answers

Changing the screen resolution

I have installed several flavors of Linux and FreeBSD onto my machine. Now when I want to change my screen resolution, it only has one option which is 800x600. Is there a way to change that to a bigger resolution? And if there is, what file do I have to edit and what text editor do I have to use?... (2 Replies)
Discussion started by: figaro
2 Replies

14. UNIX Desktop Questions & Answers

X windows not working

Hi all, Fedora 10 workstation is not able to login to X windows (GUI).But works fine on command line. Below are command outputs from two workstations: one with problem and another working fine (both are identical in h/w and run fedora core 10). Please help me in this. Thanks in advance! ... (3 Replies)
Discussion started by: lramsb4u
3 Replies

15. Windows & DOS: Issues & Discussions

Get file on our windows desktop from a ubuntu server

Hello, How can I please have a program automatically upload some files from a ubuntu server to my machine desktop that is running windows XP? I would like to be able to do that from the windows machine itself. Thanks, (3 Replies)
Discussion started by: Pouchie1
3 Replies