From a2bb760f3d69126c3e78ba4c25e4390d449579f2 Mon Sep 17 00:00:00 2001 From: dimok321 <15055714+dimok789@users.noreply.github.com> Date: Sat, 17 Oct 2009 07:30:54 +0000 Subject: [PATCH] --- source/libwiigui/gui_image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libwiigui/gui_image.cpp b/source/libwiigui/gui_image.cpp index a56f2314..9816b50f 100644 --- a/source/libwiigui/gui_image.cpp +++ b/source/libwiigui/gui_image.cpp @@ -319,7 +319,7 @@ void GuiImage::SetGrayscale(void) } } - int len = w*h*4; + int len = width*height*4; if(len%32) len += (32-len%32); DCFlushRange(image, len); } @@ -412,7 +412,7 @@ void GuiImage::ColorStripe(int shift) } } - int len = w*h*4; + int len = width*height*4; if(len%32) len += (32-len%32); DCFlushRange(image, len); }