From 8f13bae92c958c83ff0d670eaacb6b7907bf2148 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 30 Oct 2022 17:13:40 +0100 Subject: [PATCH] Removal of vid_blit_memtoscreen_8(). --- src/include/86box/video.h | 2 -- src/video/video.c | 21 --------------------- 2 files changed, 23 deletions(-) diff --git a/src/include/86box/video.h b/src/include/86box/video.h index 2dd6f3627..91ef40eab 100644 --- a/src/include/86box/video.h +++ b/src/include/86box/video.h @@ -228,7 +228,6 @@ extern void video_blend(int x, int y); extern void video_blit_memtoscreen_8(int x, int y, int w, int h); extern void video_blend_monitor(int x, int y, int monitor_index); extern void video_process_8_monitor(int x, int y, int monitor_index); -extern void video_blit_memtoscreen_8_monitor(int x, int y, int w, int h, int monitor_index); extern void video_blit_memtoscreen_monitor(int x, int y, int w, int h, int monitor_index); extern void video_blit_complete_monitor(int monitor_index); extern void video_wait_for_blit_monitor(int monitor_index); @@ -264,7 +263,6 @@ extern uint32_t video_color_transform(uint32_t color); #define video_blend(x, y) video_blend_monitor(x, y, monitor_index_global) #define video_blit_memtoscreen(x, y, w, h) video_blit_memtoscreen_monitor(x, y, w, h, monitor_index_global) #define video_process_8(x, y) video_process_8_monitor(x, y, monitor_index_global) -#define video_blit_memtoscreen_8(x, y, w, h) video_blit_memtoscreen_8_monitor(x, y, w, h, monitor_index_global) #define video_blit_complete() video_blit_complete_monitor(monitor_index_global) #define video_wait_for_blit() video_wait_for_blit_monitor(monitor_index_global) #define video_wait_for_buffer() video_wait_for_buffer_monitor(monitor_index_global) diff --git a/src/video/video.c b/src/video/video.c index f6cf6623a..9fed77bf2 100644 --- a/src/video/video.c +++ b/src/video/video.c @@ -548,27 +548,6 @@ video_process_8_monitor(int x, int y, int monitor_index) } } -void -video_blit_memtoscreen_8_monitor(int x, int y, int w, int h, int monitor_index) -{ - int yy, xx; - - if ((w > 0) && (h > 0)) { - for (yy = 0; yy < h; yy++) { - if ((y + yy) >= 0 && (y + yy) < monitors[monitor_index].target_buffer->h) { - for (xx = 0; xx < w; xx++) { - if (monitors[monitor_index].target_buffer->line[y + yy][x + xx] <= 0xff) - monitors[monitor_index].target_buffer->line[y + yy][x + xx] = monitors[monitor_index].mon_pal_lookup[monitors[monitor_index].target_buffer->line[y + yy][x + xx]]; - else - monitors[monitor_index].target_buffer->line[y + yy][x + xx] = 0x00000000; - } - } - } - } - - video_blit_memtoscreen_monitor(x, y, w, h, monitor_index); -} - void cgapal_rebuild_monitor(int monitor_index) {