/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * \/ \/ \/ \/ \/ * $Id$ * * Copyright (c) 2006 Fredrik Ohrn * * 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 "pacbox.h" .section .text .align 2 #if defined(IRIVER_H300_SERIES) && !defined(SIMULATOR) .global blit_display /* 0.75 scaling - display 3 out of 4 pixels = 216x168 Skipping pixel #2 out of 4 seems to give the most legible display void blit_display(fb_data* lcd_framebuffer, unsigned char* vbuf) { next_dst=&lcd_framebuffer[YOFS*LCD_WIDTH+XOFS+((ScreenHeight*3)/4)-1]; for (y=ScreenHeight-1;y >= 0; y--) { if ((y & 3) != 1) { dst = (next_dst--); for (x=0;x