From: Michael Dominic Kostrzewa Date: Wed, 18 Oct 2006 10:16:53 +0000 (+0000) Subject: 2006-10-18 Michael Dominic Kostrzewa X-Git-Tag: 2.1.66-1~1081 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=f17a9d7084b6bed25bda1a47080c4f8a68f100b9;p=hildon 2006-10-18 Michael Dominic Kostrzewa * hildon-widgets-plugins/hildon-color-chooser-hsv.c: Fixing the clipping in the color selector. Fixes NB#43565. --- diff --git a/ChangeLog b/ChangeLog index 76982ae..33c70be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-10-18 Michael Dominic Kostrzewa + * hildon-widgets-plugins/hildon-color-chooser-hsv.c: Fixing the + clipping in the color selector. Fixes NB#43565. + +2006-10-18 Michael Dominic Kostrzewa + * hildon-widgets/hildon-color-button.c: One more extra to actually fix NB#39798. diff --git a/hildon-widgets-plugins/hildon-color-chooser-hsv.c b/hildon-widgets-plugins/hildon-color-chooser-hsv.c index b6127f7..9804f73 100644 --- a/hildon-widgets-plugins/hildon-color-chooser-hsv.c +++ b/hildon-widgets-plugins/hildon-color-chooser-hsv.c @@ -926,7 +926,7 @@ inline void inline_draw_crosshair(unsigned char *buf, int x, int y, int w, int h for(j = 0; j < 8; j++) { sx = j + x; sy = i + y; - if(sx >= 0 && sx < w && sy >= 0 && sx < h) { + if(sx >= 0 && sx < w && sy >= 0 && sy < h) { if(crosshair[j + 8*i]) { if(crosshair[j + 8*i] & 0x1) { buf[(sx)*3+(sy)*w*3+0] = 255;