mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Quick hack to clear screen before updating
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@145 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6dd637f44c
commit
f9429cc11b
1 changed files with 23 additions and 19 deletions
|
@ -39,6 +39,8 @@
|
|||
#include "lcd-x11.h"
|
||||
|
||||
extern unsigned char display[LCD_WIDTH][LCD_HEIGHT/8];
|
||||
extern void screen_resized(int width, int height);
|
||||
extern Display *dpy;
|
||||
|
||||
void lcd_update (void)
|
||||
{
|
||||
|
@ -47,6 +49,8 @@ void lcd_update (void)
|
|||
int bit;
|
||||
XPoint points[LCD_WIDTH * LCD_HEIGHT];
|
||||
|
||||
screen_resized(LCD_WIDTH, LCD_HEIGHT);
|
||||
|
||||
for(y=0; y<LCD_HEIGHT; y+=8) {
|
||||
for(x=0; x<LCD_WIDTH; x++) {
|
||||
if(display[x][y/8]) {
|
||||
|
@ -58,10 +62,10 @@ void lcd_update (void)
|
|||
p++; /* increase the point counter */
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
drawdots(&points[0], p);
|
||||
fprintf(stderr, "lcd_update: Draws %d pixels\n", p);
|
||||
XSync(dpy,False);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue