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.

83 lines
2.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../clanlib06/directfb_fix.patch
  5. # Copyright (C) 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. # --- SDE-COPYRIGHT-NOTE-END ---
  18. --- ./Sources/Display/Display/DirectFB/target_directfb.cpp.orig 2002-02-26 17:38:11.000000000 -0300
  19. +++ ./Sources/Display/Display/DirectFB/target_directfb.cpp 2005-02-23 00:27:08.922333056 -0300
  20. @@ -104,7 +104,7 @@
  21. unsigned int CL_Target_DirectFB::get_width() const
  22. {
  23. - unsigned int width = 0;
  24. + int width = 0;
  25. surface->GetSize (surface, &width, NULL);
  26. @@ -113,7 +113,7 @@
  27. unsigned int CL_Target_DirectFB::get_height() const
  28. {
  29. - unsigned int height = 0;
  30. + int height = 0;
  31. surface->GetSize (surface, NULL, &height);
  32. @@ -147,7 +147,7 @@
  33. {
  34. case DSPF_A8:
  35. return 0;
  36. - case DSPF_RGB15:
  37. + case DSPF_ARGB1555:
  38. return 0x007c00;
  39. case DSPF_RGB16:
  40. return 0x00f800;
  41. @@ -170,7 +170,7 @@
  42. {
  43. case DSPF_A8:
  44. return 0;
  45. - case DSPF_RGB15:
  46. + case DSPF_ARGB1555:
  47. return 0x0003e0;
  48. case DSPF_RGB16:
  49. return 0x0007e0;
  50. @@ -193,7 +193,7 @@
  51. {
  52. case DSPF_A8:
  53. return 0;
  54. - case DSPF_RGB15:
  55. + case DSPF_ARGB1555:
  56. case DSPF_RGB16:
  57. return 0x00001f;
  58. case DSPF_RGB24:
  59. @@ -215,7 +215,7 @@
  60. {
  61. case DSPF_A8:
  62. return 0xff;
  63. - case DSPF_RGB15:
  64. + case DSPF_ARGB1555:
  65. case DSPF_RGB16:
  66. case DSPF_RGB24:
  67. case DSPF_RGB32:
  68. @@ -263,7 +263,7 @@
  69. void CL_Target_DirectFB::Clear (float r, float g, float b, float a)
  70. {
  71. - unsigned int width, height;
  72. + int width, height;
  73. surface->GetSize (surface, &width, &height);