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.

82 lines
2.1 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../clanlib06/directfb_fix.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  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. # --- T2-COPYRIGHT-NOTE-END ---
  17. --- ./Sources/Display/Display/DirectFB/target_directfb.cpp.orig 2002-02-26 17:38:11.000000000 -0300
  18. +++ ./Sources/Display/Display/DirectFB/target_directfb.cpp 2005-02-23 00:27:08.922333056 -0300
  19. @@ -104,7 +104,7 @@
  20. unsigned int CL_Target_DirectFB::get_width() const
  21. {
  22. - unsigned int width = 0;
  23. + int width = 0;
  24. surface->GetSize (surface, &width, NULL);
  25. @@ -113,7 +113,7 @@
  26. unsigned int CL_Target_DirectFB::get_height() const
  27. {
  28. - unsigned int height = 0;
  29. + int height = 0;
  30. surface->GetSize (surface, NULL, &height);
  31. @@ -147,7 +147,7 @@
  32. {
  33. case DSPF_A8:
  34. return 0;
  35. - case DSPF_RGB15:
  36. + case DSPF_ARGB1555:
  37. return 0x007c00;
  38. case DSPF_RGB16:
  39. return 0x00f800;
  40. @@ -170,7 +170,7 @@
  41. {
  42. case DSPF_A8:
  43. return 0;
  44. - case DSPF_RGB15:
  45. + case DSPF_ARGB1555:
  46. return 0x0003e0;
  47. case DSPF_RGB16:
  48. return 0x0007e0;
  49. @@ -193,7 +193,7 @@
  50. {
  51. case DSPF_A8:
  52. return 0;
  53. - case DSPF_RGB15:
  54. + case DSPF_ARGB1555:
  55. case DSPF_RGB16:
  56. return 0x00001f;
  57. case DSPF_RGB24:
  58. @@ -215,7 +215,7 @@
  59. {
  60. case DSPF_A8:
  61. return 0xff;
  62. - case DSPF_RGB15:
  63. + case DSPF_ARGB1555:
  64. case DSPF_RGB16:
  65. case DSPF_RGB24:
  66. case DSPF_RGB32:
  67. @@ -263,7 +263,7 @@
  68. void CL_Target_DirectFB::Clear (float r, float g, float b, float a)
  69. {
  70. - unsigned int width, height;
  71. + int width, height;
  72. surface->GetSize (surface, &width, &height);