Devkit pro question February 26, 2009 12:26PM | Registered: 15 years ago Posts: 18 |
Re: Devkit pro question February 26, 2009 12:52PM | Registered: 15 years ago Posts: 25 |
Re: Devkit pro question February 26, 2009 09:22PM | Admin Registered: 16 years ago Posts: 5,132 |
Re: Devkit pro question February 27, 2009 10:29AM | Registered: 16 years ago Posts: 276 |
void fntDrawHLine (int x1, int x2, int y, int color) { int i; y = 320 * y; x1 >>= 1; x2 >>= 1; for (i = x1; i <= x2; i++) xfb[whichfb][y + i] = color; } void fntDrawVLine (int x, int y1, int y2, int color) { int i; x >>= 1; for (i = y1; i <= y2; i++) xfb[whichfb][x + (640 * i) / 2] = color; } void fntDrawBox (int x1, int y1, int x2, int y2, int color) { fntDrawHLine (x1, x2, y1, color); fntDrawHLine (x1, x2, y2, color); fntDrawVLine (x1, y1, y2, color); fntDrawVLine (x2, y1, y2, color); }