increased lua gui.text height
This commit is contained in:
parent
0dfb58362e
commit
008ec6ceca
|
@ -1,4 +1,5 @@
|
||||||
---version 2.0.4 yet to be released---
|
---version 2.0.4 yet to be released---
|
||||||
|
22-feb-2009 - adelikat - Increased lua gui.text height (and DrawTextTransWH() height)
|
||||||
21-feb-2009 - adelikat - win32 - Lua - Added -lua commandline argment, loads a lua script on startup
|
21-feb-2009 - adelikat - win32 - Lua - Added -lua commandline argment, loads a lua script on startup
|
||||||
21-feb-2009 - adelikat - win32 - Debugger - Added pixel display after scanline display - Thanks to DWEdit for this patch
|
21-feb-2009 - adelikat - win32 - Debugger - Added pixel display after scanline display - Thanks to DWEdit for this patch
|
||||||
21-feb-2009 - adelikat - win32 - Debugger - Added Run Line, Run 128 Lines buttons - Thanks to DWEdit for this patch
|
21-feb-2009 - adelikat - win32 - Debugger - Added Run Line, Run 128 Lines buttons - Thanks to DWEdit for this patch
|
||||||
|
|
|
@ -423,7 +423,7 @@ void DrawTextTransWH(uint8 *dest, uint32 width, uint8 *textmsg, uint8 fgcolor, i
|
||||||
int c = (d >> (7-nx)) & 1;
|
int c = (d >> (7-nx)) & 1;
|
||||||
if(c)
|
if(c)
|
||||||
{
|
{
|
||||||
if(y+ny >= 18) goto textoverflow;
|
if(y+ny >= 62) goto textoverflow;
|
||||||
target[y+ny][x+nx] = 2;
|
target[y+ny][x+nx] = 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -434,7 +434,7 @@ void DrawTextTransWH(uint8 *dest, uint32 width, uint8 *textmsg, uint8 fgcolor, i
|
||||||
if(x >= width) { x=beginx; y+=8; }
|
if(x >= width) { x=beginx; y+=8; }
|
||||||
}
|
}
|
||||||
textoverflow:
|
textoverflow:
|
||||||
for(y=0; y<20; ++y)
|
for(y=0; y<62; ++y) //Max border is 2, so the max safe y is 62 (since 64 is the max for the target array
|
||||||
for(x=0; x<width; ++x)
|
for(x=0; x<width; ++x)
|
||||||
{
|
{
|
||||||
int offs = y*width+x;
|
int offs = y*width+x;
|
||||||
|
|
Loading…
Reference in New Issue