Origin commit data
------------------
Commit: a1baacc7d4
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-26 (Mon, 26 Jun 2017)
This commit is contained in:
vanhofen
2017-06-26 22:51:16 +02:00
6 changed files with 9 additions and 4 deletions

View File

@@ -58,6 +58,10 @@ fb_pixel_t *getFBp(int *y)
void FillRect(int x, int y, int w, int h, int color)
{
if(color < 0 || SIZECOLTABLE < color){
printf("FIXME array size %i color %i not in range\n",SIZECOLTABLE,color);
return;
}
fb_pixel_t *p = getFBp(&y);
MARK_FB(x, y, w, h);
p += x + y * stride;