diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-08-02 09:24:24 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-08-02 09:24:24 +0000 |
commit | a7688ff5587b2c9b2cfe50a3d161f9a9f61d0dcb (patch) | |
tree | 9d7eee011ce37b8617c52ae86df9f8f8e3dc038c /devel/clanlib | |
parent | ee41da1092fcdc27a4479e51f1cd1a2cf04fe6eb (diff) | |
download | ports-a7688ff5587b2c9b2cfe50a3d161f9a9f61d0dcb.tar.gz ports-a7688ff5587b2c9b2cfe50a3d161f9a9f61d0dcb.zip |
Fix build with gcc-3.4.2
Submitted by: Alexey Dokuchaev <danfe@nsu.ru>
Notes
Notes:
svn path=/head/; revision=115249
Diffstat (limited to 'devel/clanlib')
-rw-r--r-- | devel/clanlib/files/patch-Sources_Core_System_Unix_appconf.h | 12 | ||||
-rw-r--r-- | devel/clanlib/files/patch-Sources_Display_Display_Generic_blit_alphamask_rle.h | 43 |
2 files changed, 55 insertions, 0 deletions
diff --git a/devel/clanlib/files/patch-Sources_Core_System_Unix_appconf.h b/devel/clanlib/files/patch-Sources_Core_System_Unix_appconf.h new file mode 100644 index 000000000000..7a8854f09aa8 --- /dev/null +++ b/devel/clanlib/files/patch-Sources_Core_System_Unix_appconf.h @@ -0,0 +1,12 @@ +--- Sources/Core/System/Unix/appconf.h.orig Wed May 3 20:29:00 2000 ++++ Sources/Core/System/Unix/appconf.h Mon Aug 2 10:19:18 2004 +@@ -527,7 +527,9 @@ + + //protected: --- if FileConfig::ConfigEntry is not public, functions in + // ConfigGroup such as Find/AddEntry can't return ConfigEntry*! ++protected: + class ConfigGroup; ++public: + class ConfigEntry + { + private: diff --git a/devel/clanlib/files/patch-Sources_Display_Display_Generic_blit_alphamask_rle.h b/devel/clanlib/files/patch-Sources_Display_Display_Generic_blit_alphamask_rle.h new file mode 100644 index 000000000000..edce8f00fdc7 --- /dev/null +++ b/devel/clanlib/files/patch-Sources_Display_Display_Generic_blit_alphamask_rle.h @@ -0,0 +1,43 @@ +--- Sources/Display/Display/Generic/blit_alphamask_rle.h.orig Mon Aug 2 10:47:18 2004 ++++ Sources/Display/Display/Generic/blit_alphamask_rle.h Mon Aug 2 10:49:31 2004 +@@ -107,14 +107,14 @@ + { + T a = alpha_data[x]; + T destval = dst_data[x]; +- T r = lookup_r[(((destval&rmask)>>rstart)<<8)+a]; //(((destval&rmask)>>rstart)*a)>>8; +- T g = lookup_g[(((destval&gmask)>>gstart)<<8)+a]; //(((destval&gmask)>>gstart)*a)>>8; +- T b = lookup_b[(((destval&bmask)>>bstart)<<8)+a]; //(((destval&bmask)>>bstart)*a)>>8; ++ T r = this->lookup_r[(((destval&this->rmask)>>this->rstart)<<8)+a]; //(((destval&rmask)>>rstart)*a)>>8; ++ T g = this->lookup_g[(((destval&this->gmask)>>this->gstart)<<8)+a]; //(((destval&gmask)>>gstart)*a)>>8; ++ T b = this->lookup_b[(((destval&this->bmask)>>this->bstart)<<8)+a]; //(((destval&bmask)>>bstart)*a)>>8; + + T amix = +- (r<<rstart) + +- (g<<gstart) + +- (b<<bstart); ++ (r<<this->rstart) + ++ (g<<this->gstart) + ++ (b<<this->bstart); + + dst_data[x] = amix + *(src_data++); + } +@@ -151,13 +151,13 @@ + { + T a = alpha_data[x]; + T destval = dst_buf[x]; +- T r = lookup_r[(((destval&rmask)>>rstart)<<8)+a]; +- T g = lookup_g[(((destval&gmask)>>gstart)<<8)+a]; +- T b = lookup_b[(((destval&bmask)>>bstart)<<8)+a]; ++ T r = this->lookup_r[(((destval&this->rmask)>>this->rstart)<<8)+a]; ++ T g = this->lookup_g[(((destval&this->gmask)>>this->gstart)<<8)+a]; ++ T b = this->lookup_b[(((destval&this->bmask)>>this->bstart)<<8)+a]; + T amix = +- (r<<rstart) + +- (g<<gstart) + +- (b<<bstart); ++ (r<<this->rstart) + ++ (g<<this->gstart) + ++ (b<<this->bstart); + dst_buf[x] = amix + *(src_data++); + } + memcpy(dst_data, dst_buf, sizeof(T)*rep); |