OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | # --- T2-COPYRIGHT-NOTE-BEGIN --- |
2 | # This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
3 | # |
4 | # T2 SDE: package/.../dfbsee/compile-fix.patch |
5 | # Copyright (C) 2004 - 2005 The T2 SDE Project |
6 | # |
7 | # More information can be found in the files COPYING and README. |
8 | # |
9 | # This patch file is dual-licensed. It is available under the license the |
10 | # patched project is licensed under, as long as it is an OpenSource license |
11 | # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
12 | # of the GNU General Public License as published by the Free Software |
13 | # Foundation; either version 2 of the License, or (at your option) any later |
14 | # version. |
15 | # --- T2-COPYRIGHT-NOTE-END --- |
16 | diff -Nur DFBSee-0.7.4.orig/src/main.c DFBSee-0.7.4/src/main.c |
17 | --- DFBSee-0.7.4.orig/src/main.c 2002-11-02 01:08:18.000000000 +0200 |
18 | +++ DFBSee-0.7.4/src/main.c 2005-11-01 17:57:22.000000000 +0200 |
19 | @@ -53,7 +53,7 @@ |
20 | main (int argc, |
21 | char **argv) |
22 | { |
23 | - DFBCardCapabilities caps; |
24 | + DFBGraphicsDeviceDescription desc; |
25 | DFBSurfaceDescription dsc; |
26 | IDirectFBEventBuffer *buffer; |
27 | IDirectFBSurface *image_area; |
28 | @@ -78,8 +78,8 @@ |
29 | /* create the super interface */ |
30 | DFBCHECK (DirectFBCreate (&dfb)); |
31 | |
32 | - dfb->GetCardCapabilities (dfb, &caps); |
33 | - hw_stretchblit = caps.acceleration_mask & DFXL_STRETCHBLIT; |
34 | + dfb->GetDeviceDescription (dfb, &desc); |
35 | + hw_stretchblit = desc.acceleration_mask & DFXL_STRETCHBLIT; |
36 | |
37 | dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN); |
38 | |
39 | diff -Nur DFBSee-0.7.4.orig/src/rotate.c DFBSee-0.7.4/src/rotate.c |
40 | --- DFBSee-0.7.4.orig/src/rotate.c 2002-08-26 21:14:14.000000000 +0200 |
41 | +++ DFBSee-0.7.4/src/rotate.c 2005-11-01 18:02:17.000000000 +0200 |
42 | @@ -43,9 +43,9 @@ |
43 | {\ |
44 | *d = *s;\ |
45 | s++;\ |
46 | - (__u8*)d += dest_pitch;\ |
47 | + d = ((void*) d) + dest_pitch;\ |
48 | }\ |
49 | - (__u8*)src += src_pitch;\ |
50 | + src = ((void*) src) + src_pitch;\ |
51 | }\ |
52 | }\ |
53 | |
54 | @@ -53,7 +53,7 @@ |
55 | {\ |
56 | type d;\ |
57 | type s;\ |
58 | - (__u8 *) dest += (height - 1) * dest_pitch;\ |
59 | + dest = ((void*) dest) + (height - 1) * dest_pitch;\ |
60 | for (w = 0; w < width; w++)\ |
61 | {\ |
62 | h = height;\ |
63 | @@ -63,9 +63,9 @@ |
64 | {\ |
65 | *d = *s;\ |
66 | s++;\ |
67 | - (__u8*)d -= dest_pitch;\ |
68 | + d = ((void*) d) - dest_pitch;\ |
69 | }\ |
70 | - (__u8*)src += src_pitch;\ |
71 | + src = ((void*) src) + src_pitch;\ |
72 | }\ |
73 | }\ |
74 | |
75 | @@ -73,7 +73,7 @@ |
76 | {\ |
77 | type d;\ |
78 | type s;\ |
79 | - (__u8 *) dest += (height - 1) * dest_pitch;\ |
80 | + dest = ((void*) dest) + (height - 1) * dest_pitch;\ |
81 | while (--height)\ |
82 | {\ |
83 | d = (type) dest + width - 1;\ |
84 | @@ -85,8 +85,8 @@ |
85 | s++;\ |
86 | d--;\ |
87 | }\ |
88 | - (__u8*)src += src_pitch;\ |
89 | - (__u8*)dest -= dest_pitch;\ |
90 | + src = ((void*) src) - src_pitch;\ |
91 | + dest = ((void*) dest) + dest_pitch;\ |
92 | }\ |
93 | }\ |
94 | |
95 | @@ -172,7 +172,7 @@ |
96 | source->Lock (source, DSLF_READ, &src, &src_pitch); |
97 | destination->Lock (destination, DSLF_READ, &dest, &dest_pitch); |
98 | |
99 | - (__u8 *) dest += dest_pitch * y + DFB_BYTES_PER_PIXEL (pixelformat) * x; |
100 | + dest += dest_pitch * y + DFB_BYTES_PER_PIXEL (pixelformat) * x; |
101 | |
102 | rotate (dest, dest_pitch, |
103 | src, src_pitch, width, height, DFB_BYTES_PER_PIXEL (pixelformat), |
104 | |
105 | |
106 |