lib/libtuxtxt/tuxtxt.cpp avoid segfault, FIXME

Origin commit data
------------------
Branch: ni/coolstream
Commit: 7aec84d124
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-06-26 (Mon, 26 Jun 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-06-26 11:53:59 +02:00
parent f140be3486
commit 6771de1f2d

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;