Compile MS-VC6 compatible: only define variables after "{" or at top

This commit is contained in:
Harald Oehlmann 2016-07-04 12:08:08 +02:00
parent caa4bb913f
commit 188cfcdd1f
2 changed files with 17 additions and 5 deletions

View file

@ -598,7 +598,8 @@ void draw_letter(char *pixelbuf, unsigned char letter, int xposn, int yposn, int
break;
case 2: // bold font -> twice the regular font
{
{
char * linePtr;
max_x = 7;
max_y = 14;
@ -610,7 +611,7 @@ void draw_letter(char *pixelbuf, unsigned char letter, int xposn, int yposn, int
max_y = image_height - yposn - 1;
}
char * linePtr = pixelbuf + (yposn * image_width) + xposn + 1;
linePtr = pixelbuf + (yposn * image_width) + xposn + 1;
for (y = 0; y < max_y; y++) {
char * pixelPtr = linePtr;
int extra_dot = 0;