FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
io_getx.c
Go to the documentation of this file.
1
#include "../fb.h"
2
#include "
fb_private_console.h
"
3
4
int
fb_ConsoleGetRawXEx
(
HANDLE
hConsole )
5
{
6
CONSOLE_SCREEN_BUFFER_INFO info;
7
if
( GetConsoleScreenBufferInfo( hConsole, &info ) == 0 )
8
return
0;
9
return
info.dwCursorPosition.X;
10
}
11
12
int
fb_ConsoleGetRawX
(
void
)
13
{
14
return
fb_ConsoleGetRawXEx
(
__fb_out_handle
);
15
}
16
17
int
fb_ConsoleGetX
(
void
)
18
{
19
int
x =
fb_ConsoleGetRawX
();
20
fb_hConvertFromConsole
( &x,
NULL
,
NULL
,
NULL
);
21
return
x;
22
}
rtlib
win32
io_getx.c
Generated on Thu Jan 23 2014 19:40:09 for FreeBASIC by
1.8.4