diff options
author | Matias Mutchinick <matias@seul.org> | 2000-03-27 10:53:47 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2000-03-27 10:53:47 +0800 |
commit | 480f22c1380b92ea680bad6435bc072c6d06b8ea (patch) | |
tree | 42e98236e857ba6bfc3cf55fcb7837c8fcf317eb | |
parent | 09c05cbc769e87dd6715566d57ab153d0664c34c (diff) | |
download | gsoc2013-evolution-480f22c1380b92ea680bad6435bc072c6d06b8ea.tar gsoc2013-evolution-480f22c1380b92ea680bad6435bc072c6d06b8ea.tar.gz gsoc2013-evolution-480f22c1380b92ea680bad6435bc072c6d06b8ea.tar.bz2 gsoc2013-evolution-480f22c1380b92ea680bad6435bc072c6d06b8ea.tar.lz gsoc2013-evolution-480f22c1380b92ea680bad6435bc072c6d06b8ea.tar.xz gsoc2013-evolution-480f22c1380b92ea680bad6435bc072c6d06b8ea.tar.zst gsoc2013-evolution-480f22c1380b92ea680bad6435bc072c6d06b8ea.zip |
Removed extra code that computed bogus width. This was the actual source
2000-03-26 Matias Mutchinick <matias@seul.org>
* e-cell-toggle.c (etog_draw): Removed extra code that computed
bogus width. This was the actual source of the problem with the
miss-rendering feature.
svn path=/trunk/; revision=2173
-rw-r--r-- | widgets/e-table/ChangeLog | 6 | ||||
-rw-r--r-- | widgets/e-table/e-cell-toggle.c | 5 | ||||
-rw-r--r-- | widgets/table/e-cell-toggle.c | 5 |
3 files changed, 10 insertions, 6 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog index 54dd80fa67..585f3cd3ee 100644 --- a/widgets/e-table/ChangeLog +++ b/widgets/e-table/ChangeLog @@ -1,3 +1,9 @@ +2000-03-26 Matias Mutchinick <matias@seul.org> + + * e-cell-toggle.c (etog_draw): Removed extra code that computed + bogus width. This was the actual source of the problem with the + miss-rendering feature. + 2000-03-26 Miguel de Icaza <miguel@gnu.org> * e-table-header-item.c (ethi_realize): Remove warning from here. diff --git a/widgets/e-table/e-cell-toggle.c b/widgets/e-table/e-cell-toggle.c index 1fdbcf40ca..ddca5509ab 100644 --- a/widgets/e-table/e-cell-toggle.c +++ b/widgets/e-table/e-cell-toggle.c @@ -125,7 +125,6 @@ etog_draw (ECellView *ecell_view, GdkDrawable *drawable, height = art->height; } - width = y2 - y1; if (image->art_pixbuf->has_alpha){ GdkColor background; @@ -138,14 +137,14 @@ etog_draw (ECellView *ecell_view, GdkDrawable *drawable, background.green = 255; background.blue = 255; - for (iy = 0; iy <= art->height; iy++){ + for (iy = 0; iy < art->height; iy++){ unsigned char *dest; unsigned char *src; dest = buffer + (iy * art->rowstride); src = art->pixels + (iy * art->rowstride); - for (ix = 0; ix <= art->width; ix++){ + for (ix = 0; ix < art->width; ix++){ alpha = src [3]; if (alpha == 0){ *dest++ = background.red; diff --git a/widgets/table/e-cell-toggle.c b/widgets/table/e-cell-toggle.c index 1fdbcf40ca..ddca5509ab 100644 --- a/widgets/table/e-cell-toggle.c +++ b/widgets/table/e-cell-toggle.c @@ -125,7 +125,6 @@ etog_draw (ECellView *ecell_view, GdkDrawable *drawable, height = art->height; } - width = y2 - y1; if (image->art_pixbuf->has_alpha){ GdkColor background; @@ -138,14 +137,14 @@ etog_draw (ECellView *ecell_view, GdkDrawable *drawable, background.green = 255; background.blue = 255; - for (iy = 0; iy <= art->height; iy++){ + for (iy = 0; iy < art->height; iy++){ unsigned char *dest; unsigned char *src; dest = buffer + (iy * art->rowstride); src = art->pixels + (iy * art->rowstride); - for (ix = 0; ix <= art->width; ix++){ + for (ix = 0; ix < art->width; ix++){ alpha = src [3]; if (alpha == 0){ *dest++ = background.red; |