[Pkg-wmaker-commits] [wmbubble] 60/207: Tweak the border-drawing code a little bit so that the TR and BL corners are the same
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmbubble.
commit b729e0d33dd6d58a10bdbb9e8ef7e5166cf4374b
Author: Robert Jacobs <rnjacobs at mit.edu>
Date: Fri Aug 5 15:24:37 2011 -0700
Tweak the border-drawing code a little bit so that the TR and BL corners are the same
---
bubblemon.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/bubblemon.c b/bubblemon.c
index 3194856..fd49df5 100644
--- a/bubblemon.c
+++ b/bubblemon.c
@@ -483,16 +483,16 @@ int main(int argc, char **argv) {
int xx,yy;
unsigned char * from;
- for (from=bm.rgb_buf,xx=0;xx<BOX_SIZE*3;from++,xx++) {
+ for (from=bm.rgb_buf,xx=0;xx<BOX_SIZE*3-3;from++,xx++) {
from[0]/=4;
- from[BOX_SIZE*(BOX_SIZE-1)*3]=(255+from[BOX_SIZE*(BOX_SIZE-1)*3])/2;
+ from[BOX_SIZE*(BOX_SIZE-1)*3+3]=(255+from[BOX_SIZE*(BOX_SIZE-1)*3+3])/2;
}
- for (from=bm.rgb_buf,yy=0;yy<BOX_SIZE;yy++,from+=BOX_SIZE*3) {
+ for (from=bm.rgb_buf,yy=0;yy<BOX_SIZE-1;yy++,from+=BOX_SIZE*3) {
from[0]/=4; from[1]/=4; from[2]/=4;
- from[(BOX_SIZE-1)*3 ]=(255+from[(BOX_SIZE-1)*3 ])/2;
- from[(BOX_SIZE-1)*3+1]=(255+from[(BOX_SIZE-1)*3+1])/2;
- from[(BOX_SIZE-1)*3+2]=(255+from[(BOX_SIZE-1)*3+2])/2;
+ from[(2*BOX_SIZE-1)*3 ]=(255+from[(2*BOX_SIZE-1)*3 ])/2;
+ from[(2*BOX_SIZE-1)*3+1]=(255+from[(2*BOX_SIZE-1)*3+1])/2;
+ from[(2*BOX_SIZE-1)*3+2]=(255+from[(2*BOX_SIZE-1)*3+2])/2;
}
/* Our colorspace conversion: 18.17us/frame */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git
More information about the Pkg-wmaker-commits
mailing list