23 lines
805 B
Text
23 lines
805 B
Text
$NetBSD: patch-aj,v 1.4 2001/01/01 07:51:10 toshii Exp $
|
|
|
|
--- Sources/Core/SurfaceProviders/provider_pcx.cpp.orig Sun Apr 9 21:18:02 2000
|
|
+++ Sources/Core/SurfaceProviders/provider_pcx.cpp
|
|
@@ -113,10 +113,14 @@
|
|
|
|
datafile->seek(4, CL_InputSource::seek_set);
|
|
|
|
- short xmin = datafile->read_short16();
|
|
- short ymin = datafile->read_short16();
|
|
- short xmax = datafile->read_short16();
|
|
- short ymax = datafile->read_short16();
|
|
+ short xmin = datafile->read_uchar8() |
|
|
+ (datafile->read_char8() << 8);
|
|
+ short ymin = datafile->read_uchar8() |
|
|
+ (datafile->read_char8() << 8);
|
|
+ short xmax = datafile->read_uchar8() |
|
|
+ (datafile->read_char8() << 8);
|
|
+ short ymax = datafile->read_uchar8() |
|
|
+ (datafile->read_char8() << 8);
|
|
|
|
pitch = xmax - xmin + 1;
|
|
height = ymax - ymin + 1;
|