From 8c289f32cbccfdeebc3847029913be7da4471906 Mon Sep 17 00:00:00 2001 From: luca Date: Mon, 21 Dec 2009 09:15:24 +0000 Subject: [PATCH] Patch level :10.0 Files correlati : Ricompilazione Demo : [ ] Commento :correzioni sulle dichiarazioni della xvt_image_filter git-svn-id: svn://10.65.10.50/trunk@19824 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- xvaga/xvaga.cpp | 2 +- xvaga/xvt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xvaga/xvaga.cpp b/xvaga/xvaga.cpp index ac0a82ffe..47ec46fcd 100755 --- a/xvaga/xvaga.cpp +++ b/xvaga/xvaga.cpp @@ -2127,7 +2127,7 @@ BOOLEAN xvt_image_filter(XVT_IMAGE image, IMAGE_FILTER filter, void* param) { unsigned char* rgb = img->Image().GetData() + nPixelSize*y; for (short x = 0; x < w; x++, rgb += nPixelSize) - filter(x, y, *rgb, *(rgb+1), *(rgb+2), param); + filter(x, y, rgb, param); } } } diff --git a/xvaga/xvt.h b/xvaga/xvt.h index 2da38ac18..a189f0fdd 100755 --- a/xvaga/xvt.h +++ b/xvaga/xvt.h @@ -224,7 +224,7 @@ XVTDLL void xvt_image_set_ncolors(XVT_IMAGE image, short ncolors); XVTDLL void xvt_image_set_pixel(XVT_IMAGE image, short x, short y, COLOR color); XVTDLL void xvt_image_transfer(XVT_IMAGE dstimage, XVT_IMAGE srcimage, RCT *dstrctp, RCT *srcrctp); -typedef void (*IMAGE_FILTER)(short x, short y, unsigned char& r, unsigned char& g, unsigned char& b, void* jolly); +typedef void (*IMAGE_FILTER)(short x, short y, unsigned char* rgba, void* jolly); XVTDLL BOOLEAN xvt_image_filter(XVT_IMAGE image, IMAGE_FILTER filter, void* param); XVTDLL int xvt_list_add_item(WINDOW win, short icon, const char* text, int flags);