notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #106 from dinkc64/master
[picodrive.git]
/
platform
/
linux
/
emu.c
diff --git
a/platform/linux/emu.c
b/platform/linux/emu.c
index
ddde8da
..
5d4432f
100644
(file)
--- a/
platform/linux/emu.c
+++ b/
platform/linux/emu.c
@@
-29,7
+29,7
@@
void pemu_prep_defconfig(void)
\r
void pemu_validate_config(void)
\r
{
\r
\r
void pemu_validate_config(void)
\r
{
\r
-#if
ndef __arm__
\r
+#if
!defined(__arm__) && !defined(__i386__) && !defined(__x86_64__)
\r
PicoIn.opt &= ~POPT_EN_DRC;
\r
#endif
\r
}
\r
PicoIn.opt &= ~POPT_EN_DRC;
\r
#endif
\r
}
\r
@@
-67,7
+67,7
@@
static void draw_cd_leds(void)
void pemu_finalize_frame(const char *fps, const char *notice)
\r
{
\r
if (currentConfig.renderer != RT_16BIT && !(PicoIn.AHW & PAHW_32X)) {
\r
void pemu_finalize_frame(const char *fps, const char *notice)
\r
{
\r
if (currentConfig.renderer != RT_16BIT && !(PicoIn.AHW & PAHW_32X)) {
\r
- unsigned short *pd = (unsigned short *)g_screen_ptr + 8 * g_screen_
widt
h;
\r
+ unsigned short *pd = (unsigned short *)g_screen_ptr + 8 * g_screen_
ppitc
h;
\r
unsigned char *ps = Pico.est.Draw2FB + 328*8 + 8;
\r
unsigned short *pal = Pico.est.HighPal;
\r
int i, x;
\r
unsigned char *ps = Pico.est.Draw2FB + 328*8 + 8;
\r
unsigned short *pal = Pico.est.HighPal;
\r
int i, x;
\r
@@
-94,7
+94,7
@@
static void apply_renderer(void)
case RT_16BIT:
\r
PicoIn.opt &= ~POPT_ALT_RENDERER;
\r
PicoDrawSetOutFormat(PDF_RGB555, 0);
\r
case RT_16BIT:
\r
PicoIn.opt &= ~POPT_ALT_RENDERER;
\r
PicoDrawSetOutFormat(PDF_RGB555, 0);
\r
- PicoDrawSetOutBuf(g_screen_ptr, g_screen_
widt
h * 2);
\r
+ PicoDrawSetOutBuf(g_screen_ptr, g_screen_
ppitc
h * 2);
\r
break;
\r
case RT_8BIT_ACC:
\r
PicoIn.opt &= ~POPT_ALT_RENDERER;
\r
break;
\r
case RT_8BIT_ACC:
\r
PicoIn.opt &= ~POPT_ALT_RENDERER;
\r
@@
-108,7
+108,7
@@
static void apply_renderer(void)
}
\r
\r
if (PicoIn.AHW & PAHW_32X)
\r
}
\r
\r
if (PicoIn.AHW & PAHW_32X)
\r
- PicoDrawSetOutBuf(g_screen_ptr, g_screen_
widt
h * 2);
\r
+ PicoDrawSetOutBuf(g_screen_ptr, g_screen_
ppitc
h * 2);
\r
}
\r
\r
void plat_video_toggle_renderer(int change, int is_menu)
\r
}
\r
\r
void plat_video_toggle_renderer(int change, int is_menu)
\r
@@
-127,8
+127,8
@@
void plat_video_toggle_renderer(int change, int is_menu)
\r
void plat_status_msg_clear(void)
\r
{
\r
\r
void plat_status_msg_clear(void)
\r
{
\r
- unsigned short *d = (unsigned short *)g_screen_ptr + g_screen_
widt
h * g_screen_height;
\r
- int l = g_screen_
widt
h * 8;
\r
+ unsigned short *d = (unsigned short *)g_screen_ptr + g_screen_
ppitc
h * g_screen_height;
\r
+ int l = g_screen_
ppitc
h * 8;
\r
memset32((int *)(d - l), 0, l * 2 / 4);
\r
}
\r
\r
memset32((int *)(d - l), 0, l * 2 / 4);
\r
}
\r
\r
@@
-143,7
+143,7
@@
void plat_status_msg_busy_next(const char *msg)
\r
void plat_status_msg_busy_first(const char *msg)
\r
{
\r
\r
void plat_status_msg_busy_first(const char *msg)
\r
{
\r
-// memset32(g_screen_ptr, 0, g_screen_
widt
h * g_screen_height * 2 / 4);
\r
+// memset32(g_screen_ptr, 0, g_screen_
ppitc
h * g_screen_height * 2 / 4);
\r
plat_status_msg_busy_next(msg);
\r
}
\r
\r
plat_status_msg_busy_next(msg);
\r
}
\r
\r
@@
-153,7
+153,7
@@
void plat_update_volume(int has_changed, int is_up)
\r
void pemu_forced_frame(int no_scale, int do_emu)
\r
{
\r
\r
void pemu_forced_frame(int no_scale, int do_emu)
\r
{
\r
- PicoDrawSetOutBuf(g_screen_ptr, g_screen_
widt
h * 2);
\r
+ PicoDrawSetOutBuf(g_screen_ptr, g_screen_
ppitc
h * 2);
\r
PicoDrawSetCallbacks(NULL, NULL);
\r
Pico.m.dirtyPal = 1;
\r
\r
PicoDrawSetCallbacks(NULL, NULL);
\r
Pico.m.dirtyPal = 1;
\r
\r
@@
-174,7
+174,7
@@
void plat_debug_cat(char *str)
void emu_video_mode_change(int start_line, int line_count, int is_32cols)
\r
{
\r
// clear whole screen in all buffers
\r
void emu_video_mode_change(int start_line, int line_count, int is_32cols)
\r
{
\r
// clear whole screen in all buffers
\r
- memset32(g_screen_ptr, 0, g_screen_
widt
h * g_screen_height * 2 / 4);
\r
+ memset32(g_screen_ptr, 0, g_screen_
ppitc
h * g_screen_height * 2 / 4);
\r
}
\r
\r
void pemu_loop_prep(void)
\r
}
\r
\r
void pemu_loop_prep(void)
\r