FreeBASIC  0.91.0
hook_readxy.c
Go to the documentation of this file.
1 /* reads color valoe or character from X/Y position */
2 
3 #include "fb.h"
4 
5 /*:::::*/
6 FBCALL unsigned int fb_ReadXY( int col, int row, int colorflag )
7 {
8  unsigned int res;
9 
10  FB_LOCK();
11 
12  if( __fb_ctx.hooks.readxyproc ) {
13  res = __fb_ctx.hooks.readxyproc( col, row, colorflag );
14  } else {
15  res = fb_ConsoleReadXY( col, row, colorflag );
16  }
17 
18  FB_UNLOCK();
19 
20  return res;
21 }