/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * \/ \/ \/ \/ \/ * $Id$ * * Copyright (c) 2006 Fredrik Ohrn * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * 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