1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Robert Menes 2009-12-04 11:41:31 +00:00
parent fce66cb835
commit f51e1f9821
3 changed files with 13 additions and 9 deletions

View file

@ -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();