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.

71 lines
2.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../clanlib06/gcc34.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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./Sources/Core/System/Unix/appconf.h.orig 2004-05-14 12:00:47.877665592 +0200
  17. +++ ./Sources/Core/System/Unix/appconf.h 2004-05-14 12:01:09.510376920 +0200
  18. @@ -527,7 +527,9 @@
  19. //protected: --- if FileConfig::ConfigEntry is not public, functions in
  20. // ConfigGroup such as Find/AddEntry can't return ConfigEntry*!
  21. + protected:
  22. class ConfigGroup;
  23. + public:
  24. class ConfigEntry
  25. {
  26. private:
  27. --- ./Sources/Display/Display/Generic/blit_alphamask_rle.h.orig 2004-05-14 12:30:42.314047056 +0200
  28. +++ ./Sources/Display/Display/Generic/blit_alphamask_rle.h 2004-05-14 12:35:45.472959896 +0200
  29. @@ -107,14 +107,14 @@
  30. {
  31. T a = alpha_data[x];
  32. T destval = dst_data[x];
  33. - T r = lookup_r[(((destval&rmask)>>rstart)<<8)+a]; //(((destval&rmask)>>rstart)*a)>>8;
  34. - T g = lookup_g[(((destval&gmask)>>gstart)<<8)+a]; //(((destval&gmask)>>gstart)*a)>>8;
  35. - T b = lookup_b[(((destval&bmask)>>bstart)<<8)+a]; //(((destval&bmask)>>bstart)*a)>>8;
  36. + T r = this->lookup_r[(((destval&this->rmask)>>this->rstart)<<8)+a]; //(((destval&rmask)>>rstart)*a)>>8;
  37. + T g = this->lookup_g[(((destval&this->gmask)>>this->gstart)<<8)+a]; //(((destval&gmask)>>gstart)*a)>>8;
  38. + T b = this->lookup_b[(((destval&this->bmask)>>this->bstart)<<8)+a]; //(((destval&bmask)>>bstart)*a)>>8;
  39. T amix =
  40. - (r<<rstart) +
  41. - (g<<gstart) +
  42. - (b<<bstart);
  43. + (r<<this->rstart) +
  44. + (g<<this->gstart) +
  45. + (b<<this->bstart);
  46. dst_data[x] = amix + *(src_data++);
  47. }
  48. @@ -151,13 +151,13 @@
  49. {
  50. T a = alpha_data[x];
  51. T destval = dst_buf[x];
  52. - T r = lookup_r[(((destval&rmask)>>rstart)<<8)+a];
  53. - T g = lookup_g[(((destval&gmask)>>gstart)<<8)+a];
  54. - T b = lookup_b[(((destval&bmask)>>bstart)<<8)+a];
  55. + T r = this->lookup_r[(((destval&this->rmask)>>this->rstart)<<8)+a];
  56. + T g = this->lookup_g[(((destval&this->gmask)>>this->gstart)<<8)+a];
  57. + T b = this->lookup_b[(((destval&this->bmask)>>this->bstart)<<8)+a];
  58. T amix =
  59. - (r<<rstart) +
  60. - (g<<gstart) +
  61. - (b<<bstart);
  62. + (r<<this->rstart) +
  63. + (g<<this->gstart) +
  64. + (b<<this->bstart);
  65. dst_buf[x] = amix + *(src_data++);
  66. }
  67. memcpy(dst_data, dst_buf, sizeof(T)*rep);