From dd05be98dcef7fb09e1d37dd1055fdbea8ac68bd Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Mon, 7 Oct 2013 20:07:50 +0000 Subject: [PATCH] Updates to build fbdriver with current --- src/Makefile | 7 +++++++ src/fbdriver.c | 10 +++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index ad74cbd..910e606 100644 --- a/src/Makefile +++ b/src/Makefile @@ -64,6 +64,13 @@ gsportx: $(OBJECTS) compile_time.o mv gsportx .. cp -f ../config.template ../config.txt +# Linux framebuffer builds: +gsportfb: $(OBJECTS) compile_time.o + $(CC) $(CCOPTS) $(LDOPTS) $(OBJECTS) compile_time.o $(LDFLAGS) -o $(NAME)$(SUFFIX) $(EXTRA_LIBS) + echo $(OBJECTS) + mv gsportfb .. + cp -f ../config.template ../config.txt + # Mingw32 (native windows) builds: gsport.exe: $(OBJECTS) compile_time.o g++ $(CCOPTS) $(LDOPTS) $(OBJECTS) compile_time.o $(LDFLAGS) -o $(NAME)$(SUFFIX) $(EXTRA_LIBS) -lwinmm -lgdi32 -ldsound -lcomctl32 -lws2_32 -lshell32 diff --git a/src/fbdriver.c b/src/fbdriver.c index fe8dff7..6f18edd 100644 --- a/src/fbdriver.c +++ b/src/fbdriver.c @@ -433,6 +433,13 @@ int x_calc_ratio(float x, float y) { return 1; } +void clipboard_paste(void) +{ +} +int clipboard_get_char(void) +{ + return 0; +} /* * Input handling */ @@ -472,8 +479,9 @@ void check_input_events(void) if ((ev.code == KEY_F10) && SHIFT_DOWN) { //quitEmulator(); + iwm_shut(); xdriver_end(); - exit(0); + my_exit(1); } if (keycode_to_a2code[ev.code] >= 0) adb_physical_key_update(keycode_to_a2code[ev.code], !ev.value);