blob: 53d5955b98562bc46ed015702045895cd0a78c92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-aj,v 1.3 2000/12/15 07:31:22 mycroft Exp $
--- Sources/Core/SurfaceProviders/provider_pcx.cpp.orig Sun Apr 9 12:18:02 2000
+++ Sources/Core/SurfaceProviders/provider_pcx.cpp Fri Dec 15 07:27:49 2000
@@ -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_char8() |
+ (datafile->read_char8() << 8);
+ short ymin = datafile->read_char8() |
+ (datafile->read_char8() << 8);
+ short xmax = datafile->read_char8() |
+ (datafile->read_char8() << 8);
+ short ymax = datafile->read_char8() |
+ (datafile->read_char8() << 8);
pitch = xmax - xmin + 1;
height = ymax - ymin + 1;
|