2006-10-18 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
authorMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Wed, 18 Oct 2006 10:16:53 +0000 (10:16 +0000)
committerMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Wed, 18 Oct 2006 10:16:53 +0000 (10:16 +0000)
* hildon-widgets-plugins/hildon-color-chooser-hsv.c: Fixing the
clipping in the color selector. Fixes NB#43565.

ChangeLog
hildon-widgets-plugins/hildon-color-chooser-hsv.c

index 76982ae..33c70be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-10-18  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
 
+       * hildon-widgets-plugins/hildon-color-chooser-hsv.c: Fixing the
+       clipping in the color selector. Fixes NB#43565.
+
+2006-10-18  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
+
        * hildon-widgets/hildon-color-button.c: One more extra to actually fix
        NB#39798.
 
index b6127f7..9804f73 100644 (file)
@@ -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;