FreeBASIC  0.91.0
gfx_screen.c File Reference
#include "fb_gfx.h"
Include dependency graph for gfx_screen.c:

Go to the source code of this file.

Data Structures

struct  MODEINFO
 

Macros

#define NUM_MODES   22
 

Functions

static int set_mode (int mode, int w, int h, int depth, int scanline_size, int num_pages, int refresh_rate, int palette, int font, int flags, float aspect, int text_w, int text_h)
 
static void release_gfx_mem (void)
 
static void exit_proc (void)
 
void fb_GfxViewUpdate (void)
 
void fb_hResetCharCells (FB_GFXCTX *context, int do_alloc)
 
void fb_hClearCharCells (int x1, int y1, int x2, int y2, int page, FB_WCHAR ch, unsigned fg, unsigned bg)
 
FBCALL int fb_GfxScreen (int mode, int depth, int num_pages, int flags, int refresh_rate)
 
FBCALL int fb_GfxScreenQB (int mode, int visible, int active)
 
FBCALL int fb_GfxScreenRes (int w, int h, int depth, int num_pages, int flags, int refresh_rate)
 
FBCALL void fb_GfxSetWindowTitle (FBSTRING *title)
 

Variables

static const MODEINFO mode_info [NUM_MODES]
 
static int screen_id = 1
 
static char window_title_buff [WINDOW_TITLE_SIZE] = { 0 }
 
static int exit_proc_set = FALSE
 

Macro Definition Documentation

#define NUM_MODES   22

Definition at line 5 of file gfx_screen.c.

Function Documentation

static void exit_proc ( void  )
static

Definition at line 97 of file gfx_screen.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_GfxScreen ( int  mode,
int  depth,
int  num_pages,
int  flags,
int  refresh_rate 
)

Definition at line 370 of file gfx_screen.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_GfxScreenQB ( int  mode,
int  visible,
int  active 
)

Definition at line 418 of file gfx_screen.c.

Here is the call graph for this function:

FBCALL int fb_GfxScreenRes ( int  w,
int  h,
int  depth,
int  num_pages,
int  flags,
int  refresh_rate 
)

Definition at line 432 of file gfx_screen.c.

Here is the call graph for this function:

FBCALL void fb_GfxSetWindowTitle ( FBSTRING title)

Definition at line 473 of file gfx_screen.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_GfxViewUpdate ( void  )

Definition at line 105 of file gfx_screen.c.

Here is the caller graph for this function:

void fb_hClearCharCells ( int  x1,
int  y1,
int  x2,
int  y2,
int  page,
FB_WCHAR  ch,
unsigned  fg,
unsigned  bg 
)

Definition at line 144 of file gfx_screen.c.

Here is the caller graph for this function:

void fb_hResetCharCells ( FB_GFXCTX context,
int  do_alloc 
)

Definition at line 109 of file gfx_screen.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void release_gfx_mem ( void  )
static

Definition at line 61 of file gfx_screen.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int set_mode ( int  mode,
int  w,
int  h,
int  depth,
int  scanline_size,
int  num_pages,
int  refresh_rate,
int  palette,
int  font,
int  flags,
float  aspect,
int  text_w,
int  text_h 
)
static

Definition at line 167 of file gfx_screen.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

int exit_proc_set = FALSE
static

Definition at line 48 of file gfx_screen.c.

const MODEINFO mode_info[NUM_MODES]
static
Initial value:
= {
{ 0, 0, 0, 0, 1, -1 , -1 , 0, 0 },
{ 320, 200, 2, 1, 8, FB_PALETTE_16 , FB_FONT_8, 40, 25 },
{ 640, 200, 1, 2, 1, FB_PALETTE_16 , FB_FONT_8, 80, 25 },
{ 0, 0, 0, 0, 1, -1 , -1 , 0, 0 },
{ 0, 0, 0, 0, 1, -1 , -1 , 0, 0 },
{ 0, 0, 0, 0, 1, -1 , -1 , 0, 0 },
{ 0, 0, 0, 0, 1, -1 , -1 , 0, 0 },
{ 320, 200, 4, 1, 8, FB_PALETTE_16 , FB_FONT_8 , 40, 25 },
{ 640, 200, 4, 2, 4, FB_PALETTE_16 , FB_FONT_8 , 80, 25 },
{ 640, 350, 4, 1, 2, FB_PALETTE_64 , FB_FONT_14, 80, 25 },
{ 640, 350, 1, 1, 2, FB_PALETTE_2 , FB_FONT_14, 80, 25 },
{ 640, 480, 1, 1, 1, FB_PALETTE_2 , FB_FONT_16, 80, 30 },
{ 640, 480, 4, 1, 1, FB_PALETTE_256, FB_FONT_16, 80, 30 },
{ 320, 200, 8, 1, 1, FB_PALETTE_256, FB_FONT_8 , 40, 25 },
{ 320, 240, 8, 1, 1, FB_PALETTE_256, FB_FONT_8 , 40, 30 },
{ 400, 300, 8, 1, 1, FB_PALETTE_256, FB_FONT_8 , 50, 37 },
{ 512, 384, 8, 1, 1, FB_PALETTE_256, FB_FONT_16, 64, 24 },
{ 640, 400, 8, 1, 1, FB_PALETTE_256, FB_FONT_16, 80, 25 },
{ 640, 480, 8, 1, 1, FB_PALETTE_256, FB_FONT_16, 80, 30 },
{ 800, 600, 8, 1, 1, FB_PALETTE_256, FB_FONT_16, 100, 37 },
{ 1024, 768, 8, 1, 1, FB_PALETTE_256, FB_FONT_16, 128, 48 },
{ 1280, 1024, 8, 1, 1, FB_PALETTE_256, FB_FONT_16, 160, 64 }
}

Definition at line 19 of file gfx_screen.c.

int screen_id = 1
static

Definition at line 46 of file gfx_screen.c.

char window_title_buff[WINDOW_TITLE_SIZE] = { 0 }
static

Definition at line 47 of file gfx_screen.c.