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

Go to the source code of this file.

Macros

#define CURSOR_W   13
 
#define CURSOR_H   22
 
#define BIT_ENCODE(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12)   ((p0)|(p1<<2)|(p2<<4)|(p3<<6)|(p4<<8)|(p5<<10)|(p6<<12)|(p7<<14)|(p8<<16)|(p9<<18)|(p10<<20)|(p11<<22)|(p12<<24))
 

Functions

void fb_hSoftCursor_code_start (void)
 
static void copy_cursor_area (int x, int y, int from_area)
 
int fb_hColorDistance (int index, int r, int g, int b)
 
void fb_hSoftCursorInit (void)
 
void fb_hSoftCursorExit (void)
 
void fb_hSoftCursorPut (int x, int y)
 
void fb_hSoftCursorUnput (int x, int y)
 
void fb_hSoftCursorPaletteChanged (void)
 
void fb_hSoftCursor_code_end (void)
 

Variables

char fb_hSoftCursor_data_start
 
static const unsigned int cursor_data []
 
static unsigned char * cursor_area
 
static unsigned int white
 
static unsigned int black
 
char fb_hSoftCursor_data_end
 

Macro Definition Documentation

#define BIT_ENCODE (   p0,
  p1,
  p2,
  p3,
  p4,
  p5,
  p6,
  p7,
  p8,
  p9,
  p10,
  p11,
  p12 
)    ((p0)|(p1<<2)|(p2<<4)|(p3<<6)|(p4<<8)|(p5<<10)|(p6<<12)|(p7<<14)|(p8<<16)|(p9<<18)|(p10<<20)|(p11<<22)|(p12<<24))

Definition at line 8 of file gfx_softcursor.c.

#define CURSOR_H   22

Definition at line 6 of file gfx_softcursor.c.

#define CURSOR_W   13

Definition at line 5 of file gfx_softcursor.c.

Function Documentation

static void copy_cursor_area ( int  x,
int  y,
int  from_area 
)
static

Definition at line 47 of file gfx_softcursor.c.

Here is the caller graph for this function:

int fb_hColorDistance ( int  index,
int  r,
int  g,
int  b 
)

Definition at line 77 of file gfx_softcursor.c.

Here is the caller graph for this function:

void fb_hSoftCursor_code_end ( void  )

Definition at line 181 of file gfx_softcursor.c.

Here is the caller graph for this function:

void fb_hSoftCursor_code_start ( void  )

Definition at line 43 of file gfx_softcursor.c.

Here is the caller graph for this function:

void fb_hSoftCursorExit ( void  )

Definition at line 106 of file gfx_softcursor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hSoftCursorInit ( void  )

Definition at line 86 of file gfx_softcursor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hSoftCursorPaletteChanged ( void  )

Definition at line 161 of file gfx_softcursor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hSoftCursorPut ( int  x,
int  y 
)

Definition at line 116 of file gfx_softcursor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hSoftCursorUnput ( int  x,
int  y 
)

Definition at line 153 of file gfx_softcursor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

unsigned int black
static

Definition at line 39 of file gfx_softcursor.c.

unsigned char* cursor_area
static

Definition at line 38 of file gfx_softcursor.c.

const unsigned int cursor_data[]
static
Initial value:
= {
BIT_ENCODE(2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
BIT_ENCODE(2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
BIT_ENCODE(2, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
BIT_ENCODE(2, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0),
BIT_ENCODE(2, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0),
BIT_ENCODE(2, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0),
BIT_ENCODE(2, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0),
BIT_ENCODE(2, 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0),
BIT_ENCODE(2, 1, 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0),
BIT_ENCODE(2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 0, 0),
BIT_ENCODE(2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 0),
BIT_ENCODE(2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 0),
BIT_ENCODE(2, 1, 1, 1, 2, 1, 1, 2, 3, 3, 3, 3, 3),
BIT_ENCODE(2, 1, 1, 2, 2, 1, 1, 2, 3, 0, 0, 0, 0),
BIT_ENCODE(2, 1, 2, 3, 3, 2, 1, 1, 2, 0, 0, 0, 0),
BIT_ENCODE(2, 2, 3, 0, 0, 2, 1, 1, 2, 3, 0, 0, 0),
BIT_ENCODE(2, 3, 0, 0, 0, 0, 2, 1, 1, 2, 0, 0, 0),
BIT_ENCODE(0, 0, 0, 0, 0, 0, 2, 1, 1, 2, 3, 0, 0),
BIT_ENCODE(0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 2, 0, 0),
BIT_ENCODE(0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 2, 3, 0),
BIT_ENCODE(0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 3, 3, 0),
}

Definition at line 13 of file gfx_softcursor.c.

char fb_hSoftCursor_data_end

Definition at line 41 of file gfx_softcursor.c.

char fb_hSoftCursor_data_start

Definition at line 11 of file gfx_softcursor.c.

unsigned int white
static

Definition at line 39 of file gfx_softcursor.c.