From a8b4a281c42c022147a984fa7aaf77ad149278c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Tue, 22 Sep 2020 18:38:06 +0000 Subject: Fix build with -fno-common --- emulators/gngb/files/patch-src_video__std.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 emulators/gngb/files/patch-src_video__std.c (limited to 'emulators/gngb/files/patch-src_video__std.c') diff --git a/emulators/gngb/files/patch-src_video__std.c b/emulators/gngb/files/patch-src_video__std.c new file mode 100644 index 000000000000..6288add7a078 --- /dev/null +++ b/emulators/gngb/files/patch-src_video__std.c @@ -0,0 +1,25 @@ +--- src/video_std.c.orig 2005-12-11 09:53:02 UTC ++++ src/video_std.c +@@ -30,14 +30,21 @@ + + static Uint32 std_flag; + SDL_Surface *back=NULL; ++Uint8 rb_on; ++Uint8 rb_shift; + +- + Sint8 rb_tab[2][RB_SIZE]={{0,-2,2,-2,2}, + {0,-1,-1,1,1}}; + + VIDEO_MODE video_std; + ++SDL_Rect scrR; ++SDL_Rect dstR; + SDL_Rect clip_rct; ++SDL_Rect ov_rect; ++ ++int scxoff,scyoff; ++ + Uint8 win_line=0; + + /* -- cgit v1.2.3