mirror of the now-defunct rocklinux.org
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.

75 lines
3.0 KiB

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