From 0445e61fde2575aaf6d2a6dc932aff0b3145a009 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Mon, 26 Jun 2017 21:33:03 -0700 Subject: [PATCH] Add prototypes for flush_display_region...() to display.h Correct declared argument types in flush_display_region...() to match usage. modified: inc/display.h modified: src/initdsp.c --- inc/display.h | 8 ++++++++ src/initdsp.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/inc/display.h b/inc/display.h index aa419ef..09b1a4f 100755 --- a/inc/display.h +++ b/inc/display.h @@ -79,3 +79,11 @@ extern DLword *DisplayRegion68k; #undef DISPLAYBUFFER #endif /* XWINDOW */ +void flush_display_buffer(); +void flush_display_lineregion(UNSIGNED x, DLword *ybase, UNSIGNED w, UNSIGNED h); +void flush_display_region(int x, int y, int w, int h); +void flush_display_ptrregion(DLword *ybase, UNSIGNED bitoffset, UNSIGNED w, UNSIGNED h); + +#ifdef BYTESWAP +void byte_swapped_displayregion(int x, int y, int w, int h); +#endif diff --git a/src/initdsp.c b/src/initdsp.c index 7d60f32..c2c1a21 100644 --- a/src/initdsp.c +++ b/src/initdsp.c @@ -756,7 +756,7 @@ void byte_swapped_displayregion(int x, int y, int w, int h) /* */ /************************************************************************/ -void flush_display_lineregion(UNSIGNED x, UNSIGNED ybase, UNSIGNED w, UNSIGNED h) +void flush_display_lineregion(UNSIGNED x, DLword *ybase, UNSIGNED w, UNSIGNED h) #ifdef I386 { /*flush_display_buffer(); */ int y; @@ -805,7 +805,7 @@ void flush_display_lineregion(UNSIGNED x, UNSIGNED ybase, UNSIGNED w, UNSIGNED h #define BITSPERWORD 16 -void flush_display_ptrregion(UNSIGNED ybase, UNSIGNED bitoffset, UNSIGNED w, UNSIGNED h) +void flush_display_ptrregion(DLword *ybase, UNSIGNED bitoffset, UNSIGNED w, UNSIGNED h) #ifdef I386 { flush_display_buffer(); } #else