From 84c5c35281aba8ea9be621f38d436c9e15e42802 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sat, 24 Jan 2004 01:47:55 +0000 Subject: Added keyboard help bitmap --- src/gfx.c | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) (limited to 'src/gfx.c') diff --git a/src/gfx.c b/src/gfx.c index 7906e84..ec7c0dc 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -74,6 +74,26 @@ static int scale; static void (*putpixel)(int x, int y, Uint32 col); +#define NO_BMPIX 10 + +static struct +{ + Uint32 col; + int r,g,b; +} bmpix[NO_BMPIX]= +{ + {0, 0x00,0x00,0x00}, /* BLACK */ + {0, 0x00,0x00,0xff}, /* BLUE */ + {0, 0xff,0x00,0x00}, /* RED */ + {0, 0xff,0x00,0xff}, /* MAGENTA */ + {0, 0x00,0xff,0x00}, /* GREEN */ + {0, 0x00,0xff,0xff}, /* CYAN */ + {0, 0xff,0xff,0x00}, /* YELLOW */ + {0, 0xff,0xff,0xff}, /* WHITE */ + {0, 0x90,0x90,0x90}, /* GREY */ +}; + + /* ---------------------------------------- PRIVATE FUNCTIONS */ @@ -146,10 +166,29 @@ static void DoVLine(int x, int y1, int y2, Uint32 col) } +static void BMPlot(int bx, int by, int *x, int *y, int w, int h, int col) +{ + if (*y=h) + break; + } + else + { + int f; + + for (f=0;f=h) + break; + } + } + + UNLOCK; +} + + /* END OF FILE */ -- cgit v1.2.3