UINT32 spbactn_state::screen_update_spbactnp(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { // hack to make the extra cpu do something.. m_extraram2[0x104] = machine().rand(); m_extraram2[0x105] = machine().rand(); return draw_video(screen,bitmap,cliprect,true); }
static void clear (vbi_page * pg) { pg = pg; draw_video (0, 0, DISP_WIDTH, DISP_HEIGHT); XPutImage (display, window, gc, ximage, 0, 0, 0, 0, DISP_WIDTH, DISP_HEIGHT); }
static void draw_instagram(char **id, char **link) { draw_clear(); draw_photo(&*id); draw_username(); draw_likes(); draw_video(); draw_link(&*link); draw_update(); }
static void roll_up (vbi_page * pg, int first_row, int last_row) { ushort scol, *canvas = ximgdata + 45 * DISP_WIDTH; vbi_rgba col; int i, j; #if 1 /* soft */ sh_first = first_row; sh_last = last_row; shift = 26; bump(step, FALSE); canvas += 48 + (((last_row * CELL_HEIGHT) + CELL_HEIGHT - step) * DISP_WIDTH); col = pg->color_map[pg->text[last_row * pg->columns].background]; scol = RGB565 (col); for (j = 0; j < step; ++j) { if (pg->text[last_row * pg->columns].opacity == VBI_TRANSPARENT_SPACE) { for (i = 0; i < CELL_WIDTH * pg->columns; ++i) canvas[i] = RGB565 (COLORKEY); } else { for (i = 0; i < CELL_WIDTH * pg->columns; ++i) canvas[i] = scol; } canvas += DISP_WIDTH; } #else /* at once */ memmove (canvas + first_row * CELL_HEIGHT * DISP_WIDTH, canvas + (first_row + 1) * CELL_HEIGHT * DISP_WIDTH, (last_row - first_row) * CELL_HEIGHT * DISP_WIDTH * 2); draw_video (48, 45 + last_row * CELL_HEIGHT, DISP_WIDTH - 48, CELL_HEIGHT); #endif XPutImage (display, window, gc, ximage, 0, 0, 0, 0, DISP_WIDTH, DISP_HEIGHT); }
static void render (vbi_page * pg, int row) { /* ushort *canvas = ximgdata + 48 + 45 * DISP_WIDTH; */ if (shift > 0) { bump(shift, FALSE); draw_video (48, 45 + sh_last * CELL_HEIGHT, DISP_WIDTH - 48, CELL_HEIGHT); } draw_row (ximgdata + 48 + (45 + row * CELL_HEIGHT) * DISP_WIDTH, pg, row); XPutImage (display, window, gc, ximage, 0, 0, 0, 0, DISP_WIDTH, DISP_HEIGHT); }
UINT32 spbactn_state::screen_update_spbactn(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { return draw_video(screen,bitmap,cliprect,false); }