/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * \/ \/ \/ \/ \/ * $Id$ * * Copyright (C) 2002 by Daniel Stenberg * * All files in this archive are subject to the GNU General Public License. * See the file COPYING in the source tree root for full license agreement. * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * ****************************************************************************/ #include #include #include #include #include #include #include #include #include #include #include #include "screenhack.h" /* * Specific implementations for X11, using the generic LCD API and data. */ #include "lcd-x11.h" #include "lcd-playersim.h" extern unsigned char lcd_framebuffer[LCD_HEIGHT/8][LCD_WIDTH]; extern void screen_resized(int width, int height); extern Display *dpy; #ifdef HAVE_LCD_BITMAP unsigned char lcd_framebuffer_copy[LCD_HEIGHT/8][LCD_WIDTH]; static int counter; void lcd_set_invert_display(bool invert) { (void)invert; } void lcd_update (void) { int x, y; int p=0; int bit; struct coordinate points[LCD_WIDTH * LCD_HEIGHT]; int cp=0; struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT]; fprintf(stderr, "%04d: lcd_update()\n", counter++); for(y=0; y LCD_WIDTH) xmax = LCD_WIDTH; if(ymax >= LCD_HEIGHT/8) ymax = LCD_HEIGHT/8-1; for(; yline<=ymax; yline++) { y = yline * 8; for(x=x_start; x