FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
hook_pageset.c
Go to the documentation of this file.
1
/* 'screen , pg, pg' entrypoint, default to console mode */
2
3
#include "
fb.h
"
4
5
FBCALL
int
fb_PageSet
(
int
active,
int
visible )
6
{
7
fb_DevScrnInit_NoOpen
( );
8
9
FB_LOCK
();
10
11
int
res;
12
13
if
(
__fb_ctx
.
hooks
.
pagesetproc
)
14
res =
__fb_ctx
.
hooks
.
pagesetproc
( active, visible );
15
else
{
16
if
( (active >=
FB_CONSOLE_MAXPAGES
) || (visible >=
FB_CONSOLE_MAXPAGES
) ) {
17
FB_UNLOCK
();
18
return
-1;
19
}
20
res =
fb_ConsolePageSet
( active, visible );
21
}
22
23
FB_UNLOCK
();
24
25
return
res;
26
}
rtlib
hook_pageset.c
Generated on Thu Jan 23 2014 19:40:12 for FreeBASIC by
1.8.4