OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
3.2 KiB

  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 - 2006 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. - dfb->GetCardCapabilities (dfb, &caps);
  32. - hw_stretchblit = caps.acceleration_mask & DFXL_STRETCHBLIT;
  33. + dfb->GetDeviceDescription (dfb, &desc);
  34. + hw_stretchblit = desc.acceleration_mask & DFXL_STRETCHBLIT;
  35. dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN);
  36. diff -Nur DFBSee-0.7.4.orig/src/rotate.c DFBSee-0.7.4/src/rotate.c
  37. --- DFBSee-0.7.4.orig/src/rotate.c 2002-08-26 21:14:14.000000000 +0200
  38. +++ DFBSee-0.7.4/src/rotate.c 2005-11-01 18:02:17.000000000 +0200
  39. @@ -43,9 +43,9 @@
  40. {\
  41. *d = *s;\
  42. s++;\
  43. - (__u8*)d += dest_pitch;\
  44. + d = ((void*) d) + dest_pitch;\
  45. }\
  46. - (__u8*)src += src_pitch;\
  47. + src = ((void*) src) + src_pitch;\
  48. }\
  49. }\
  50. @@ -53,7 +53,7 @@
  51. {\
  52. type d;\
  53. type s;\
  54. - (__u8 *) dest += (height - 1) * dest_pitch;\
  55. + dest = ((void*) dest) + (height - 1) * dest_pitch;\
  56. for (w = 0; w < width; w++)\
  57. {\
  58. h = height;\
  59. @@ -63,9 +63,9 @@
  60. {\
  61. *d = *s;\
  62. s++;\
  63. - (__u8*)d -= dest_pitch;\
  64. + d = ((void*) d) - dest_pitch;\
  65. }\
  66. - (__u8*)src += src_pitch;\
  67. + src = ((void*) src) + src_pitch;\
  68. }\
  69. }\
  70. @@ -73,7 +73,7 @@
  71. {\
  72. type d;\
  73. type s;\
  74. - (__u8 *) dest += (height - 1) * dest_pitch;\
  75. + dest = ((void*) dest) + (height - 1) * dest_pitch;\
  76. while (--height)\
  77. {\
  78. d = (type) dest + width - 1;\
  79. @@ -85,8 +85,8 @@
  80. s++;\
  81. d--;\
  82. }\
  83. - (__u8*)src += src_pitch;\
  84. - (__u8*)dest -= dest_pitch;\
  85. + src = ((void*) src) - src_pitch;\
  86. + dest = ((void*) dest) + dest_pitch;\
  87. }\
  88. }\
  89. @@ -172,7 +172,7 @@
  90. source->Lock (source, DSLF_READ, &src, &src_pitch);
  91. destination->Lock (destination, DSLF_READ, &dest, &dest_pitch);
  92. - (__u8 *) dest += dest_pitch * y + DFB_BYTES_PER_PIXEL (pixelformat) * x;
  93. + dest += dest_pitch * y + DFB_BYTES_PER_PIXEL (pixelformat) * x;
  94. rotate (dest, dest_pitch,
  95. src, src_pitch, width, height, DFB_BYTES_PER_PIXEL (pixelformat),