mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-03 16:38:42 -04:00
Compile MS-VC6 compatible: only define variables after "{" or at top
This commit is contained in:
parent
caa4bb913f
commit
188cfcdd1f
2 changed files with 17 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue