Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed 2D video on Android
Browse files Browse the repository at this point in the history
There was a dummy renderer left in there which was overriding the OpenGL ES renderer.
  • Loading branch information
slouken committed Jan 5, 2011
1 parent 985abea commit b35d3a1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 389 deletions.
1 change: 1 addition & 0 deletions Makefile.android
Expand Up @@ -28,6 +28,7 @@ SOURCES = \
src/video/*.c \
src/power/*.c \
src/audio/android/*.c \
src/audio/dummy/*.c \
src/video/android/*.c \
src/joystick/android/*.c \
src/haptic/dummy/*.c \
Expand Down
29 changes: 14 additions & 15 deletions include/SDL_config_android.h
Expand Up @@ -55,8 +55,6 @@ typedef unsigned int uint32_t;
#define HAVE_SIGNAL_H 1

/* C library functions */
#define HAVE_ATAN 1
#define HAVE_ATAN2 1
#define HAVE_MALLOC 1
#define HAVE_CALLOC 1
#define HAVE_REALLOC 1
Expand Down Expand Up @@ -95,6 +93,9 @@ typedef unsigned int uint32_t;
#define HAVE_SSCANF 1
#define HAVE_SNPRINTF 1
#define HAVE_VSNPRINTF 1
#define HAVE_M_PI 1
#define HAVE_ATAN 1
#define HAVE_ATAN2 1
#define HAVE_CEIL 1
#define HAVE_COPYSIGN 1
#define HAVE_COS 1
Expand All @@ -117,15 +118,16 @@ typedef unsigned int uint32_t;
typedef unsigned int size_t;
//typedef unsigned long uintptr_t;

/* Enable various audio drivers */
#define SDL_AUDIO_DRIVER_ANDROID 1
#define SDL_AUDIO_DRIVER_DUMMY 1

#define SDL_CDROM_DISABLED 1

#define SDL_HAPTIC_DISABLED 1
/* Enable various input drivers */
#define SDL_JOYSTICK_ANDROID 1
#define SDL_HAPTIC_DUMMY 1

#define SDL_JOYSTICK_ANDROID 1

#define SDL_LOADSO_DISABLED 1
/* Enable various shared object loading systems */
#define SDL_LOADSO_DUMMY 1

/* Enable various threading systems */
#define SDL_THREAD_PTHREAD 1
Expand All @@ -134,14 +136,11 @@ typedef unsigned int size_t;
/* Enable various timer systems */
#define SDL_TIMER_UNIX 1

/* Enable various video drivers */
#define SDL_VIDEO_DRIVER_ANDROID 1

#define HAVE_STDIO_H 1
#define HAVE_SYS_TYPES_H 1

#define HAVE_M_PI 1

#define SDL_VIDEO_RENDER_OGL_ES 1
/* Enable OpenGL ES */
#define SDL_VIDEO_OPENGL_ES 1
#define SDL_VIDEO_RENDER_OGL_ES 1

#endif /* _SDL_config_minimal_h */

0 comments on commit b35d3a1

Please sign in to comment.