summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/PCX.CPP
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/PCX.CPP')
-rw-r--r--nGenEx/PCX.CPP6
1 files changed, 3 insertions, 3 deletions
diff --git a/nGenEx/PCX.CPP b/nGenEx/PCX.CPP
index 42b34b2..9782060 100644
--- a/nGenEx/PCX.CPP
+++ b/nGenEx/PCX.CPP
@@ -112,11 +112,11 @@ PcxImage::PcxImage(short w, short h, unsigned char* bits, unsigned char* colors)
bitmap = new(__FILE__,__LINE__) unsigned char [imagebytes];
if (bitmap) {
- for (i = 0; i < imagebytes; i++)
+ for (int i = 0; i < imagebytes; i++)
bitmap[i] = bits[i];
unsigned char* p = pal;
- for (i = 0; i < 256; i++) {
+ for (int i = 0; i < 256; i++) {
*p++ = *colors++;
*p++ = *colors++;
*p++ = *colors++;
@@ -205,7 +205,7 @@ PcxImage::PcxImage(short w, short h, unsigned long* hibits)
himap = new(__FILE__,__LINE__) unsigned long [imagebytes];
if (himap) {
- for (i = 0; i < imagebytes; i++)
+ for (int i = 0; i < imagebytes; i++)
himap[i] = hibits[i];
}
}