FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
gfx_screeninfo.c
Go to the documentation of this file.
1
/* Function to get informations about current gfx mode. */
2
3
#include "
fb_gfx.h
"
4
5
FBCALL
void
fb_GfxScreenInfo
6
(
7
ssize_t *width,
8
ssize_t *height,
9
ssize_t *depth,
10
ssize_t *bpp,
11
ssize_t *pitch,
12
ssize_t *refresh,
13
FBSTRING
*driver
14
)
15
{
16
char
*
name
;
17
18
if
(!
__fb_gfx
) {
19
name =
""
;
20
fb_hScreenInfo
(width, height, depth, refresh);
21
*bpp = *pitch = 0;
22
}
23
else
{
24
name =
__fb_gfx
->
driver
->
name
;
25
*width =
__fb_gfx
->
w
;
26
*height =
__fb_gfx
->
h
;
27
*depth =
__fb_gfx
->
depth
;
28
*bpp =
__fb_gfx
->
bpp
;
29
*pitch =
__fb_gfx
->
pitch
;
30
*refresh =
__fb_gfx
->
refresh_rate
;
31
}
32
33
if
(
fb_hStrDelTemp
(driver)) {
34
fb_hStrRealloc
(driver, strlen(name),
FB_FALSE
);
35
strcpy(driver->
data
, name);
36
}
37
}
gfxlib2
gfx_screeninfo.c
Generated on Thu Jan 23 2014 19:40:06 for FreeBASIC by
1.8.4