chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix stupid width/height bug
[ypp-sc-tools.web-live.git]
/
pctb
/
pages.c
diff --git
a/pctb/pages.c
b/pctb/pages.c
index 58cb306b436f9c3d76937396e763e81fd50aa07f..50a652c5946a02ffd1a82fc60780e19620217dbf 100644
(file)
--- a/
pctb/pages.c
+++ b/
pctb/pages.c
@@
-271,8
+271,8
@@
static void snapshot(Snapshot **output) {
int x,y,i;
unsigned char *op= (*output)->data;
- for (y=0; y<w
width
; y++) {
- for (x=0; x<w
height
; x++) {
+ for (y=0; y<w
height
; y++) {
+ for (x=0; x<w
width
; x++) {
long xrgb= XGetPixel(im_use,x,y);
for (i=0; i<3; i++) {
unsigned long sample=