diff options
Diffstat (limited to 'Gui/skin')
-rw-r--r-- | Gui/skin/font.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Gui/skin/font.c b/Gui/skin/font.c index 7c6df69d02..eb904c5f1a 100644 --- a/Gui/skin/font.c +++ b/Gui/skin/font.c @@ -165,11 +165,12 @@ txSample * fntRender( int id,int px,int sx,char * fmt,... ) obuf=(unsigned long *)tmp->Image; ibuf=(unsigned long *)tmp2.Image; + oy=0; for ( y=0;y < tmp->Height;y++ ) { ox=px; - oy=y * sx; dx=y * tmp->Width; + dx=y * tmp->Width; for ( x=0;x < sx;x++ ) { ibuf[oy++]=obuf[dx + ox++]; |