projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7a6c559
)
Fix copy paste typo in swap_byte_order
author
Pascal Terjan
<pterjan@google.com>
Mon, 27 Oct 2014 23:50:20 +0000
(
00:50
+0100)
committer
Mikael Magnusson
<mikachu@gmail.com>
Tue, 28 Oct 2014 03:14:24 +0000
(
04:14
+0100)
obrender/color.c
patch
|
blob
|
history
diff --git
a/obrender/color.c
b/obrender/color.c
index
86a8b3e
..
4295367
100644
(file)
--- a/
obrender/color.c
+++ b/
obrender/color.c
@@
-239,7
+239,7
@@
static void swap_byte_order(XImage *im)
di = 0;
for (y = 0; y < im->height; ++y) {
- for (x = 0; x < im->
height
; ++x) {
+ for (x = 0; x < im->
width
; ++x) {
gchar *c = &im->data[di + x * im->bits_per_pixel / 8];
gchar t;