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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
diff -Nru orig-DFBSee-0.7.4/src/rotate.c DFBSee-0.7.4/src/rotate.c
--- orig-DFBSee-0.7.4/src/rotate.c 2005-12-05 15:37:52.000000000 +0800
+++ DFBSee-0.7.4/src/rotate.c 2005-12-05 15:38:10.000000000 +0800
@@ -43,9 +43,9 @@
{\
*d = *s;\
s++;\
- (__u8*)d += dest_pitch;\
+ d = ((void*) d) + dest_pitch;\
}\
- (__u8*)src += src_pitch;\
+ src = ((void*) src) + src_pitch;\
}\
}\
@@ -53,7 +53,7 @@
{\
type d;\
type s;\
- (__u8 *) dest += (height - 1) * dest_pitch;\
+ dest = ((void*) dest) + (height - 1) * dest_pitch;\
for (w = 0; w < width; w++)\
{\
h = height;\
@@ -63,9 +63,9 @@
{\
*d = *s;\
s++;\
- (__u8*)d -= dest_pitch;\
+ d = ((void*) d) - dest_pitch;\
}\
- (__u8*)src += src_pitch;\
+ src = ((void*) src) + src_pitch;\
}\
}\
@@ -73,7 +73,7 @@
{\
type d;\
type s;\
- (__u8 *) dest += (height - 1) * dest_pitch;\
+ dest = ((void*) dest) + (height - 1) * dest_pitch;\
while (--height)\
{\
d = (type) dest + width - 1;\
@@ -85,8 +85,8 @@
s++;\
d--;\
}\
- (__u8*)src += src_pitch;\
- (__u8*)dest -= dest_pitch;\
+ src = ((void*) src) - src_pitch;\
+ dest = ((void*) dest) + dest_pitch;\
}\
}\
@@ -172,7 +172,7 @@
source->Lock (source, DSLF_READ, &src, &src_pitch);
destination->Lock (destination, DSLF_READ, &dest, &dest_pitch);
- (__u8 *) dest += dest_pitch * y + DFB_BYTES_PER_PIXEL (pixelformat) * x;
+ dest += dest_pitch * y + DFB_BYTES_PER_PIXEL (pixelformat) * x;
rotate (dest, dest_pitch,
src, src_pitch, width, height, DFB_BYTES_PER_PIXEL (pixelformat),
|