Previous 15994 Revisions Next

r1291 Sunday 18th November, 2007 at 13:27:04 UTC by Wilbert Pol
[GAMEBOY] Declared some more functions as static.
[src/mess/video]gb.c

src/mess/video/gb.c
r1290r1291
7373   INT16  bgline;
7474};
7575
76struct gb_lcd_struct {
76static struct gb_lcd_struct {
7777   int   window_lines_drawn;
7878
7979   /* Things used to render current line */
r1290r1291
193193  Select which sprites should be drawn for the current scanline and return the
194194  number of sprites selected.
195195 */
196int gb_select_sprites( void ) {
196static int gb_select_sprites( void ) {
197197   int   i, yindex, line, height;
198198   UINT8   *oam = gb_oam + 39 * 4;
199199
r1290r1291
312312   }
313313}
314314
315void gb_update_scanline (void) {
315static void gb_update_scanline (void) {
316316   mame_bitmap *bitmap = tmpbitmap;
317317
318318   profiler_mark(PROFILER_VIDEO);
r1290r1291
534534   }
535535}
536536
537void sgb_refresh_border(void) {
537static void sgb_refresh_border(void) {
538538   UINT16 data, data2;
539539   UINT16 yidx, xidx, xindex;
540540   UINT8 *map, *tiles, *tiles2;
r1290r1291
596596   }
597597}
598598
599void sgb_update_scanline (void) {
599static void sgb_update_scanline (void) {
600600   mame_bitmap *bitmap = tmpbitmap;
601601
602602   profiler_mark(PROFILER_VIDEO);
r1290r1291
859859   }
860860}
861861
862void cgb_update_scanline (void) {
862static void cgb_update_scanline (void) {
863863   mame_bitmap *bitmap = tmpbitmap;
864864
865865   profiler_mark(PROFILER_VIDEO);
r1290r1291
10671067   this data from my CGB on a boot once.
10681068*/
10691069
1070const UINT8 cgb_oam_extra[0x60] = {
1070static const UINT8 cgb_oam_extra[0x60] = {
10711071   0x74, 0xFF, 0x09, 0x00, 0x9D, 0x61, 0xA8, 0x28, 0x36, 0x1E, 0x58, 0xAA, 0x75, 0x74, 0xA1, 0x42,
10721072   0x05, 0x96, 0x40, 0x09, 0x41, 0x02, 0x60, 0x00, 0x1F, 0x11, 0x22, 0xBC, 0x31, 0x52, 0x22, 0x54,
10731073   0x22, 0xA9, 0xC4, 0x00, 0x1D, 0xAD, 0x80, 0x0C, 0x5D, 0xFA, 0x51, 0x92, 0x93, 0x98, 0xA4, 0x04,
r1290r1291
11071107   gbc_hdma_enabled = 0;
11081108}
11091109
1110void gbc_hdma(UINT16 length) {
1110static void gbc_hdma(UINT16 length) {
11111111   UINT16 src, dst;
11121112
11131113   src = ((UINT16)HDMA1 << 8) | (HDMA2 & 0xF0);
r1290r1291
11281128   }
11291129}
11301130
1131void gb_increment_scanline( void ) {
1131static void gb_increment_scanline( void ) {
11321132   gb_lcd.current_line = ( gb_lcd.current_line + 1 ) % 154;
11331133   if ( LCDCONT & 0x80 ) {
11341134      CURLINE = gb_lcd.current_line;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team