FreeBASIC  0.91.0
gfx_driver_bios.c File Reference
#include "../fb_gfx.h"
#include "fb_gfx_dos.h"
#include <go32.h>
#include <pc.h>
Include dependency graph for gfx_driver_bios.c:

Go to the source code of this file.

Data Structures

struct  _driver_depth_modes
 

Macros

#define DRV_DEPTH_COUNT   (sizeof(scr_modes)/sizeof(scr_modes[0]))
 

Typedefs

typedef void(* fnUpdate )(void)
 
typedef struct _driver_depth_modes driver_depth_modes
 

Functions

static int driver_init (char *title, int w, int h, int depth, int refresh_rate, int flags)
 
static void driver_update_bpp1 (void)
 
static void driver_update_bpp2 (void)
 
static void driver_update_bpp4 (void)
 
static void end_of_driver_update (void)
 
static int * driver_fetch_modes (int depth, int *size)
 
static void init_planar_access (void)
 
static void driver_update_planar_ega_vga (int planes)
 

Variables

GFXDRIVER fb_gfxDriverBIOS
 
static const int res_bpp1 []
 
static const unsigned char mode_bpp1 []
 
static const int res_bpp2 []
 
static const unsigned char mode_bpp2 []
 
static const int res_bpp4 []
 
static const unsigned char mode_bpp4 []
 
static const driver_depth_modes scr_modes []
 
static unsigned char uchScanLineBuffer [640]
 

Macro Definition Documentation

#define DRV_DEPTH_COUNT   (sizeof(scr_modes)/sizeof(scr_modes[0]))

Definition at line 81 of file gfx_driver_bios.c.

Typedef Documentation

typedef void(* fnUpdate)(void)

Definition at line 8 of file gfx_driver_bios.c.

Function Documentation

static int * driver_fetch_modes ( int  depth,
int *  size 
)
static

Definition at line 373 of file gfx_driver_bios.c.

static int driver_init ( char *  title,
int  w,
int  h,
int  depth,
int  refresh_rate,
int  flags 
)
static

Definition at line 85 of file gfx_driver_bios.c.

Here is the call graph for this function:

static void driver_update_bpp1 ( void  )
static

Definition at line 232 of file gfx_driver_bios.c.

Here is the call graph for this function:

static void driver_update_bpp2 ( void  )
static

Definition at line 330 of file gfx_driver_bios.c.

static void driver_update_bpp4 ( void  )
static

Definition at line 363 of file gfx_driver_bios.c.

Here is the call graph for this function:

static void driver_update_planar_ega_vga ( int  planes)
static

Definition at line 176 of file gfx_driver_bios.c.

Here is the caller graph for this function:

static void end_of_driver_update ( void  )
static

Definition at line 371 of file gfx_driver_bios.c.

Here is the caller graph for this function:

static void init_planar_access ( void  )
static

Definition at line 158 of file gfx_driver_bios.c.

Here is the caller graph for this function:

Variable Documentation

const unsigned char mode_bpp1[]
static
Initial value:
= {
0x06, 0x0F, 0x11, 0
}

Definition at line 41 of file gfx_driver_bios.c.

const unsigned char mode_bpp2[]
static
Initial value:
= {
0x04, 0
}

Definition at line 48 of file gfx_driver_bios.c.

const unsigned char mode_bpp4[]
static
Initial value:
= {
0x10, 0x12,
0
}

Definition at line 60 of file gfx_driver_bios.c.

const int res_bpp1[]
static
Initial value:
= {
SCREENLIST(640, 200),
SCREENLIST(640, 350),
SCREENLIST(640, 480),
0
}

Definition at line 35 of file gfx_driver_bios.c.

const int res_bpp2[]
static
Initial value:
= {
SCREENLIST(320, 200),
0
}

Definition at line 44 of file gfx_driver_bios.c.

const int res_bpp4[]
static
Initial value:
= {
SCREENLIST(640, 350),
SCREENLIST(640, 480),
0
}

Definition at line 51 of file gfx_driver_bios.c.

const driver_depth_modes scr_modes[]
static
Initial value:

Definition at line 75 of file gfx_driver_bios.c.

unsigned char uchScanLineBuffer[640]
static

Definition at line 83 of file gfx_driver_bios.c.