Unix and Linux Discussions Tagged with resolution |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
24,752 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
2,905 |
Solaris |
|
|
|
5 |
6,683 |
Solaris |
|
|
|
4 |
23,727 |
Programming |
|
|
|
1 |
3,084 |
AIX |
|
|
|
1 |
2,793 |
Solaris |
|
|
|
0 |
2,755 |
OS X Support RSS |
|
|
|
0 |
6,402 |
AIX |
|
|
|
2 |
8,250 |
Solaris |
|
|
|
1 |
9,583 |
UNIX Desktop Questions & Answers |
|
|
|
9 |
3,825 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
9,833 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,690 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,688 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,204 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,453 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,593 |
UNIX for Dummies Questions & Answers |
|
|
|
22 |
12,761 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,973 |
IP Networking |
|
|
|
3 |
44,013 |
How do I send email? |
|
|
|
3 |
5,133 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,736 |
UNIX for Dummies Questions & Answers |
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)