diff options
author | Robert Menes <rmenes@rockbox.org> | 2009-12-04 11:41:31 +0000 |
---|---|---|
committer | Robert Menes <rmenes@rockbox.org> | 2009-12-04 11:41:31 +0000 |
commit | f51e1f9821f73762477feb7e97e561c51463c24b (patch) | |
tree | f975a13080eaaaa07ba6e35576bc24f1db72da96 /apps/plugins/pong.c | |
parent | fce66cb83570e13a8494fd3d8dfc41b82e8512a0 (diff) |
Fix a typo for the GoGear SA9200 on chessclock, and got the LCD resolution
in the right spot this time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23843 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pong.c')
-rw-r--r-- | apps/plugins/pong.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/pong.c b/apps/plugins/pong.c index 13c5012770..73fb48356b 100644 --- a/apps/plugins/pong.c +++ b/apps/plugins/pong.c @@ -370,7 +370,7 @@ void score(struct pong *p, int pad) /* avoid hitting the pad with the new ball */ p->ballx = (p->ballx < 0) ? (RES * PAD_WIDTH) : (RES * (LCD_WIDTH - PAD_WIDTH - BALL_WIDTH)); - + /* restore Y-speed to default */ p->ballspeedy = (p->ballspeedy > 0) ? SPEEDY : -SPEEDY; @@ -460,7 +460,7 @@ int keys(struct pong *p) while(TIME_BEFORE(*rb->current_tick, end)) { key = rb->button_get_w_tmo(end - *rb->current_tick); - + #ifdef HAVE_TOUCHSCREEN short touch_x, touch_y; if(key & BUTTON_TOUCHSCREEN) @@ -469,7 +469,7 @@ int keys(struct pong *p) touch_y = rb->button_get_data() & 0xFFFF; if(touch_x >= xpos[0] && touch_x <= xpos[0]+(PAD_WIDTH*4)) padmove(&p->w_pad[0], touch_y-(p->e_pad[0]*2+PAD_HEIGHT)/2); - + if(touch_x >= xpos[1]-(PAD_WIDTH*4) && touch_x <= xpos[1]) padmove(&p->w_pad[1], touch_y-(p->e_pad[1]*2+PAD_HEIGHT)/2); } @@ -507,7 +507,7 @@ int keys(struct pong *p) if(key & PONG_RIGHT_UP) /* player right goes up */ padmove(&p->w_pad[1], -MOVE_STEP); - + if(rb->default_event_handler(key) == SYS_USB_CONNECTED) return -1; /* exit game because of USB */ } @@ -548,7 +548,7 @@ enum plugin_status plugin_start(const void* parameter) /* if you don't use the parameter, you can do like this to avoid the compiler warning about it */ (void)parameter; - + /* Clear screen */ rb->lcd_clear_display(); |