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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
: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)
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)
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)
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)
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)