mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-15 14:22:57 -06:00
IconDes: Fixed debug crash problem
git-svn-id: svn://ultimatepp.org/upp/trunk@7368 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b6fe186c9e
commit
5f375dfa60
2 changed files with 3 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#include "Draw/init"
|
||||
#include "plugin\bmp/init"
|
||||
#include "RichText/init"
|
||||
#define BLITZ_INDEX__ Fe2ff541f9bb9f4ad3f5bcc23a34e1b73
|
||||
#define BLITZ_INDEX__ F656a4ea94e4f808b1ec63034b0e6c5ac
|
||||
#include "CtrlCore.icpp"
|
||||
#undef BLITZ_INDEX__
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ void IconDraw::PutVert(int x, int y, int cy)
|
|||
int b = minmax(y + cy, 0, image.GetHeight());
|
||||
y = minmax(y, 0, image.GetHeight());
|
||||
cy = b - y;
|
||||
if(cy <= 0)
|
||||
return;
|
||||
RGBA *t = image[y] + x;
|
||||
while(cy-- > 0) {
|
||||
*t = docolor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue