Use specific texture for emulation instead of screen one
This commit is contained in:
parent
b7ad269295
commit
f0c47e548f
7 changed files with 63 additions and 24 deletions
|
@ -66,10 +66,15 @@ void inputmode_redraw(void)
|
|||
SDL_Rect r;
|
||||
SDL_Surface* surface;
|
||||
|
||||
#ifdef RASPBERRY
|
||||
r.x=(prSDLScreen->w-160)/2;
|
||||
r.y=(prSDLScreen->h-160)/2;
|
||||
#else
|
||||
r.x=80;
|
||||
r.y=prSDLScreen->h-200;
|
||||
r.w=160;
|
||||
r.h=160;
|
||||
#endif
|
||||
|
||||
if (inputMode[0] && inputMode[1] && inputMode[2])
|
||||
{
|
||||
|
|
|
@ -262,7 +262,7 @@ int keycode2amiga(SDL_keysym *prKeySym)
|
|||
{
|
||||
int iAmigaKeycode = kc_decode(prKeySym);
|
||||
if (iAmigaKeycode == -1)
|
||||
return decode_us(prKeySym);
|
||||
return decode_fr(prKeySym);
|
||||
return iAmigaKeycode;
|
||||
}
|
||||
|
||||
|
|
|
@ -495,6 +495,10 @@ void setCpuSpeed()
|
|||
{
|
||||
char speedCmd[128];
|
||||
|
||||
#ifdef RASPBERRY
|
||||
return;
|
||||
#endif
|
||||
|
||||
currprefs.pandora_cpu_speed = changed_prefs.pandora_cpu_speed;
|
||||
|
||||
if(currprefs.pandora_cpu_speed != lastCpuSpeed)
|
||||
|
@ -516,6 +520,9 @@ void setCpuSpeed()
|
|||
|
||||
void resetCpuSpeed(void)
|
||||
{
|
||||
#ifdef RASPBERRY
|
||||
return;
|
||||
#endif
|
||||
if(cpuSpeedChanged)
|
||||
{
|
||||
FILE* f = fopen ("/etc/pandora/conf/cpu.conf", "rt");
|
||||
|
@ -652,7 +659,11 @@ void handle_events (void)
|
|||
// back to start of state
|
||||
|
||||
currprefs.pandora_custom_dpad++;
|
||||
#ifdef RASPBERRY
|
||||
if(currprefs.pandora_custom_dpad > 1)
|
||||
#else
|
||||
if(currprefs.pandora_custom_dpad > 2)
|
||||
#endif
|
||||
currprefs.pandora_custom_dpad = 0;
|
||||
changed_prefs.pandora_custom_dpad = currprefs.pandora_custom_dpad;
|
||||
if(currprefs.pandora_custom_dpad == 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue