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.

104 lines
3.2 KiB

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