projects
/
colorize.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57b08a5
)
fixup: Fixed crash while rendering palette for "asis"-color
author
Andreas Eversberg
<jolly@eversberg.eu>
Sun, 24 May 2015 11:44:31 +0000
(13:44 +0200)
committer
Andreas Eversberg
<jolly@eversberg.eu>
Sat, 20 Jun 2015 04:39:33 +0000
(06:39 +0200)
gui/palette.c
patch
|
blob
|
history
diff --git
a/gui/palette.c
b/gui/palette.c
index
8dd5d0d
..
cc9e03d
100644
(file)
--- a/
gui/palette.c
+++ b/
gui/palette.c
@@
-110,9
+110,6
@@
static GdkPixbuf *draw_pixpuf(int i)
cb = 0;
else if (cb > 255)
cb = 255;
- data[j * rs + k * 3 + 0] = cr;
- data[j * rs + k * 3 + 1] = cg;
- data[j * rs + k * 3 + 2] = cb;
} else
if (k >= COLOR_HEIGHT) {
cr = 255;