Add generic sdl platform
This commit is contained in:
parent
2951f7f5cf
commit
8a73441c54
3 changed files with 16 additions and 5 deletions
13
Makefile
13
Makefile
|
@ -6,12 +6,13 @@ ifeq ($(PLATFORM),rpi2)
|
|||
CPU_FLAGS += -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
|
||||
DEFS += -DRASPBERRY
|
||||
HAVE_NEON = 1
|
||||
HAVE_DISPMANX = 1
|
||||
USE_PICASSO96 = 1
|
||||
else ifeq ($(PLATFORM),rpi1)
|
||||
CPU_FLAGS += -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard
|
||||
HAVE_DISPMANX = 1
|
||||
DEFS += -DRASPBERRY
|
||||
else ifeq ($(PLATFORM),armv6)
|
||||
CPU_FLAGS += -march=armv6j -mfpu=vfp -mfloat-abi=hard
|
||||
else ifeq ($(PLATFORM),generic-sdl)
|
||||
endif
|
||||
|
||||
NAME = uae4arm
|
||||
|
@ -137,7 +138,6 @@ OBJS = \
|
|||
src/od-pandora/pandora.o \
|
||||
src/od-pandora/pandora_filesys.o \
|
||||
src/od-pandora/pandora_gui.o \
|
||||
src/od-rasp/rasp_gfx.o \
|
||||
src/od-pandora/pandora_mem.o \
|
||||
src/od-pandora/sigsegv_handler.o \
|
||||
src/od-pandora/menu/menu_config.o \
|
||||
|
@ -169,6 +169,13 @@ OBJS = \
|
|||
src/od-pandora/gui/PanelSavestate.o \
|
||||
src/od-pandora/gui/main_window.o \
|
||||
src/od-pandora/gui/Navigation.o
|
||||
|
||||
ifeq ($(HAVE_DISPMANX), 1)
|
||||
OBJS += src/od-rasp/rasp_gfx.o
|
||||
else
|
||||
OBJS += src/od-pandora/pandora_gfx.o
|
||||
endif
|
||||
|
||||
ifdef PANDORA
|
||||
OBJS += src/od-pandora/gui/sdltruetypefont.o
|
||||
endif
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include "custom.h"
|
||||
#include "drawing.h"
|
||||
#include "events.h"
|
||||
#include "osdep/inputmode.h"
|
||||
#include "od-pandora/inputmode.h"
|
||||
#include "savestate.h"
|
||||
#include "picasso96.h"
|
||||
|
||||
|
@ -139,10 +139,12 @@ static void open_screen(struct uae_prefs *p)
|
|||
}
|
||||
else
|
||||
{
|
||||
#ifdef PICASSO96
|
||||
if(picasso_vidinfo.height < 480)
|
||||
snprintf(layersize, 20, "%dx480", picasso_vidinfo.width);
|
||||
else
|
||||
snprintf(layersize, 20, "%dx%d", picasso_vidinfo.width, picasso_vidinfo.height);
|
||||
#endif
|
||||
#ifndef WIN32
|
||||
setenv("SDL_OMAP_LAYER_SIZE", layersize, 1);
|
||||
#endif
|
||||
|
@ -167,7 +169,9 @@ static void open_screen(struct uae_prefs *p)
|
|||
}
|
||||
else
|
||||
{
|
||||
#ifdef PICASSO96
|
||||
prSDLScreen = SDL_SetVideoMode(picasso_vidinfo.width, picasso_vidinfo.height, 16, SDL_HWSURFACE|SDL_FULLSCREEN|SDL_DOUBLEBUF);
|
||||
#endif
|
||||
}
|
||||
if(prSDLScreen != NULL)
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
/* #define CPUEMU_12 */ /* cycle-exact cpu&blitter */
|
||||
/* #define ACTION_REPLAY */ /* Action Replay 1/2/3 support */
|
||||
#if !defined(RASPBERRY)
|
||||
#define PICASSO96 /* Picasso96 display card emulation */
|
||||
/* #define PICASSO96 */ /* Picasso96 display card emulation */
|
||||
#define UAEGFX_INTERNAL /* built-in libs:picasso96/uaegfx.card */
|
||||
#endif
|
||||
/* #define BSDSOCKET */ /* bsdsocket.library emulation */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue