FreeBASIC  0.91.0
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 {
8 
9  FB_LOCK();
10 
11  int res;
12 
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 }