2014-12-19 05:01:53 +01:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: 2014-12-18 11:43:21.385084191 +0100
|
2015-05-07 13:37:59 +02:00
|
|
|
Refresh: Thu May 7 13:22:40 CEST 2015
|
|
|
|
|
|
|
|
Author could not decide between "sdlbgifast" and "bgifast"
|
|
|
|
(same for bgislow), so add extra symbols to enable both names.
|
2014-12-19 05:01:53 +01:00
|
|
|
|
|
|
|
---
|
2015-05-07 13:37:59 +02:00
|
|
|
Makefile.am | 2 ++
|
|
|
|
configure.ac | 9 +++++++++
|
|
|
|
src/Makefile.am | 8 ++++++++
|
|
|
|
src/SDL_bgi.c | 8 ++++++++
|
|
|
|
src/SDL_bgi.h | 2 ++
|
|
|
|
src/test/Makefile.am | 10 ++++++++++
|
|
|
|
6 files changed, 39 insertions(+)
|
2014-12-19 05:01:53 +01:00
|
|
|
|
2015-05-07 13:37:59 +02:00
|
|
|
Index: SDL_bgi-2.0.0/Makefile.am
|
2014-12-19 05:01:53 +01:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2015-05-07 13:37:59 +02:00
|
|
|
+++ SDL_bgi-2.0.0/Makefile.am
|
2014-12-19 05:01:53 +01:00
|
|
|
@@ -0,0 +1,2 @@
|
|
|
|
+ACLOCAL_AMFLAGS = -I m4
|
|
|
|
+SUBDIRS = src
|
2015-05-07 13:37:59 +02:00
|
|
|
Index: SDL_bgi-2.0.0/configure.ac
|
2014-12-19 05:01:53 +01:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2015-05-07 13:37:59 +02:00
|
|
|
+++ SDL_bgi-2.0.0/configure.ac
|
2014-12-19 05:01:53 +01:00
|
|
|
@@ -0,0 +1,9 @@
|
|
|
|
+AC_INIT([SDL_bgi], [1.0.1])
|
|
|
|
+AC_CONFIG_AUX_DIR([build-aux])
|
|
|
|
+AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
+AC_PROG_CC
|
|
|
|
+AM_INIT_AUTOMAKE([foreign subdir-objects tar-pax dist-xz no-dist-gzip])
|
|
|
|
+LT_INIT
|
2015-05-07 13:37:59 +02:00
|
|
|
+PKG_CHECK_MODULES([sdl2], [sdl2])
|
|
|
|
+AC_CONFIG_FILES([Makefile src/Makefile src/test/Makefile])
|
2014-12-19 05:01:53 +01:00
|
|
|
+AC_OUTPUT
|
2015-05-07 13:37:59 +02:00
|
|
|
Index: SDL_bgi-2.0.0/src/Makefile.am
|
2014-12-19 05:01:53 +01:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2015-05-07 13:37:59 +02:00
|
|
|
+++ SDL_bgi-2.0.0/src/Makefile.am
|
|
|
|
@@ -0,0 +1,8 @@
|
|
|
|
+SUBDIRS = . test
|
|
|
|
+AM_CPPFLAGS = ${sdl2_CFLAGS}
|
2014-12-19 05:01:53 +01:00
|
|
|
+AM_CFLAGS = -Wall
|
|
|
|
+lib_LTLIBRARIES = libSDL_bgi.la
|
|
|
|
+libSDL_bgi_la_SOURCES = SDL_bgi.c
|
2015-05-07 13:37:59 +02:00
|
|
|
+libSDL_bgi_la_LIBADD = -lm ${sdl2_LIBS}
|
|
|
|
+pkgincludedir = ${includedir}/SDL2
|
|
|
|
+pkginclude_HEADERS = SDL_bgi.h
|
|
|
|
Index: SDL_bgi-2.0.0/src/SDL_bgi.c
|
|
|
|
===================================================================
|
|
|
|
--- SDL_bgi-2.0.0.orig/src/SDL_bgi.c
|
|
|
|
+++ SDL_bgi-2.0.0/src/SDL_bgi.c
|
|
|
|
@@ -2069,6 +2069,10 @@ void sdlbgifast (void)
|
|
|
|
{
|
|
|
|
bgi_fast_mode = 1;
|
|
|
|
} // sdlbgifast ()
|
|
|
|
+void bgifast (void)
|
|
|
|
+{
|
|
|
|
+ bgi_fast_mode = 1;
|
|
|
|
+} // sdlbgifast ()
|
|
|
|
|
|
|
|
// -----
|
|
|
|
|
|
|
|
@@ -2076,6 +2080,10 @@ void bgislow (void)
|
|
|
|
{
|
|
|
|
bgi_fast_mode = 0;
|
|
|
|
} // sdlbgislow ()
|
|
|
|
+void sdlbgislow (void)
|
|
|
|
+{
|
|
|
|
+ bgi_fast_mode = 0;
|
|
|
|
+} // sdlbgislow ()
|
|
|
|
|
|
|
|
// -----
|
|
|
|
|
|
|
|
Index: SDL_bgi-2.0.0/src/SDL_bgi.h
|
|
|
|
===================================================================
|
|
|
|
--- SDL_bgi-2.0.0.orig/src/SDL_bgi.h
|
|
|
|
+++ SDL_bgi-2.0.0/src/SDL_bgi.h
|
|
|
|
@@ -307,6 +307,8 @@ int registerbgifont (void *);
|
|
|
|
void restorecrtmode (void);
|
|
|
|
void sdlbgifast (void);
|
|
|
|
void sdlbgislow (void);
|
|
|
|
+void bgifast (void);
|
|
|
|
+void bgislow (void);
|
|
|
|
void sector (int, int, int, int, int, int);
|
|
|
|
void setactivepage (int);
|
|
|
|
void setallpalette (struct palettetype *);
|
|
|
|
Index: SDL_bgi-2.0.0/src/test/Makefile.am
|
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
|
|
|
+++ SDL_bgi-2.0.0/src/test/Makefile.am
|
|
|
|
@@ -0,0 +1,10 @@
|
|
|
|
+AM_CPPFLAGS = -I${top_srcdir}/src
|
|
|
|
+AM_CFLAGS = -Wall
|
|
|
|
+EXTRA_PROGRAMS = \
|
|
|
|
+ cellular dla fern floodfilltest hopalong life \
|
|
|
|
+ mandelbrot mousetest moveit sdlbgidemo simple turtledemo
|
|
|
|
+LDADD = ../libSDL_bgi.la
|
|
|
|
+hopalong_LDADD = ${LDADD} -lm
|
|
|
|
+sdlbgidemo_LDADD = ${LDADD} -lm
|
|
|
|
+turtledemo_SOURCES = turtle.c turtledemo.c
|
|
|
|
+turtledemo_LDADD = ${LDADD} -lm
|