FreeBASIC  0.91.0
hook_color.c
Go to the documentation of this file.
1 /* color entrypoint, default to console mode */
2 
3 #include "fb.h"
4 
5 /*:::::*/
6 FBCALL int fb_Color( int fc, int bc, int flags )
7 {
8  int cur;
9 
10  FB_LOCK();
11 
13  cur = __fb_ctx.hooks.colorproc( fc, bc, flags );
14  else
15  cur = fb_ConsoleColor( fc, bc, flags );
16 
17  FB_UNLOCK();
18 
19  return cur;
20 }