CFrameBuffer: add debug warning if radius < 0

Radius < 0 causes for wrong rendering. paintBoxFrame() gets confused.
This will paint partial outside of frame area.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0eca61b71e
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-01 (Thu, 01 Sep 2016)



------------------
This commit was generated by Migit
This commit is contained in:
2016-09-01 08:27:14 +02:00
parent 84d2bac43e
commit 8d8b3fd844

View File

@@ -1381,9 +1381,11 @@ void CFrameBuffer::paintBoxFrame(const int x, const int y, const int dx, const i
return;
if (dx == 0 || dy == 0) {
printf("paintBoxFrame: radius %d, start x %d y %d end x %d y %d\n", radius, x, y, x+dx, y+dy);
dprintf(DEBUG_NORMAL, "[CFrameBuffer] [%s - %d]: radius %d, start x %d y %d end x %d y %d\n", __func__, __LINE__, radius, x, y, x+dx, y+dy);
return;
}
if (radius < 0)
dprintf(DEBUG_NORMAL, "[CFrameBuffer] [%s - %d]: WARNING! radius < 0 [%d] FIXIT\n", __func__, __LINE__, radius);
setCornerFlags(type);
int rad_tl = 0, rad_tr = 0, rad_bl = 0, rad_br = 0;