www.delorie.com/archives/browse.cgi | search |
Date: | Tue, 22 Jul 97 17:56:19 GMT |
From: | "Adrian Martin" <adrian DOT martin AT upn DOT co DOT uk> |
Encoding: | 31 Text |
Message-Id: | <9706228696.AA869621839@upn.co.uk> |
To: | Waldron AT lr DOT net, djgpp AT delorie DOT com |
Subject: | Re: Allocation of memory. |
struct PCXHeader { char manufacturer; char version; char encoding; char bpp; int xStart, yStart; <<* int xEnd, yEnd; <<* int xRes, yRes; <<* char egaPal[48]; char reserved; char numPlanes; int bpl; int pType; char padding[58]; }; Try changing these( marked <<* above ) to shorts. i.e. short xStart , yStart: The PCX format was invented when ints were only 16bits not 32 as in DJGPP. Adrian
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |