blob: ae8342365c0aca3b4f5d73843a05a8c5bda3bb40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
$NetBSD: patch-di,v 1.1.2.2 2005/05/01 22:06:21 salo Exp $
--- kimgio/pcx.h.orig 2003-01-04 13:48:25.000000000 +1300
+++ kimgio/pcx.h
@@ -49,7 +49,7 @@ class Palette
rgb[ i ] = RGB( color );
}
- QRgb color( int i )
+ QRgb color( int i ) const
{
return qRgb( rgb[ i ].r, rgb[ i ].g, rgb[ i ].b );
}
@@ -60,12 +60,11 @@ class Palette
class PCXHEADER
{
public:
- PCXHEADER()
- {
- reset();
- }
+ PCXHEADER();
- void reset();
+ inline int width() const { return ( XMax-XMin ) + 1; }
+ inline int height() const { return ( YMax-YMin ) + 1; }
+ inline bool isCompressed() const { return ( Encoding==1 ); }
Q_UINT8 Manufacturer; // Constant Flag, 10 = ZSoft .pcx
Q_UINT8 Version; // Version information·
@@ -99,7 +98,7 @@ class PCXHEADER
// found only in PB IV/IV Plus
Q_UINT16 VScreenSize; // Vertical screen size in pixels. New field
// found only in PB IV/IV Plus
-};
+} KDE_PACKED;
#endif // PCX_H
|