notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tweaking pandora frontend
[libpicofe.git]
/
win32
/
plat.c
diff --git
a/win32/plat.c
b/win32/plat.c
index
79cf584
..
ecf4719
100644
(file)
--- a/
win32/plat.c
+++ b/
win32/plat.c
@@
-13,6
+13,8
@@
static unsigned short screen_buff[320 * 240];
static unsigned char PicoDraw2FB_[(8+320) * (8+240+8)];
unsigned char *PicoDraw2FB = PicoDraw2FB_;
static unsigned short screen_buff[320 * 240];
static unsigned char PicoDraw2FB_[(8+320) * (8+240+8)];
unsigned char *PicoDraw2FB = PicoDraw2FB_;
+const char *renderer_names[] = { NULL };
+const char *renderer_names32x[] = { NULL };
char cpu_clk_name[] = "unused";
char cpu_clk_name[] = "unused";
@@
-59,29
+61,19
@@
int plat_wait_event(int *fds_hnds, int count, int timeout_ms)
void pemu_prep_defconfig(void)
{
memset(&defaultConfig, 0, sizeof(defaultConfig));
void pemu_prep_defconfig(void)
{
memset(&defaultConfig, 0, sizeof(defaultConfig));
- defaultConfig.EmuOpt = 0x9d | EOPT_RAM_TIMINGS|EOPT_CONFIRM_SAVE|EOPT_EN_CD_LEDS;
- defaultConfig.s_PicoOpt = POPT_EN_STEREO|POPT_EN_FM|POPT_EN_PSG|POPT_EN_Z80 |
- POPT_EN_MCD_PCM|POPT_EN_MCD_CDDA|POPT_ACC_SPRITES |
- POPT_EN_32X|POPT_EN_PWM;
defaultConfig.s_PicoOpt|= POPT_6BTN_PAD; // for xmen proto
defaultConfig.s_PicoOpt|= POPT_6BTN_PAD; // for xmen proto
- defaultConfig.s_PsndRate = 44100;
- defaultConfig.s_PicoRegion = 0; // auto
- defaultConfig.s_PicoAutoRgnOrder = 0x184; // US, EU, JP
defaultConfig.s_PicoCDBuffers = 0;
defaultConfig.Frameskip = 0;
}
defaultConfig.s_PicoCDBuffers = 0;
defaultConfig.Frameskip = 0;
}
-
static int EmuScanBegin16(unsigned int num
)
+
void pemu_validate_config(void
)
{
{
- DrawLineDest = (unsigned short *) g_screen_ptr + g_screen_width * num;
-
- return 0;
}
void pemu_loop_prep(void)
{
}
void pemu_loop_prep(void)
{
- PicoDrawSet
ColorFormat(
1);
- Pico
ScanBegin = EmuScanBegin16
;
+ PicoDrawSet
OutFormat(PDF_RGB555,
1);
+ Pico
DrawSetOutBuf(g_screen_ptr, g_screen_width * 2)
;
pemu_sound_start();
}
pemu_sound_start();
}
@@
-94,7
+86,11
@@
void pemu_forced_frame(int opts)
{
}
{
}
-void pemu_update_display(const char *fps, const char *notice_msg)
+void pemu_finalize_frame(const char *fps, const char *notice_msg)
+{
+}
+
+void plat_video_flip(void)
{
DirectScreen(g_screen_ptr);
DirectPresent();
{
DirectScreen(g_screen_ptr);
DirectPresent();
@@
-104,10
+100,10
@@
void plat_video_wait_vsync(void)
{
}
{
}
-void plat_video_toggle_renderer(int
is_next, int force_16bpp
, int is_menu)
+void plat_video_toggle_renderer(int
change
, int is_menu)
{
// this will auto-select SMS/32X renderers
{
// this will auto-select SMS/32X renderers
- PicoDrawSet
ColorFormat(
1);
+ PicoDrawSet
OutFormat(PDF_RGB555,
1);
}
void emu_video_mode_change(int start_line, int line_count, int is_32cols)
}
void emu_video_mode_change(int start_line, int line_count, int is_32cols)
@@
-200,10
+196,6
@@
void plat_video_menu_end(void)
{
}
{
}
-void plat_validate_config(void)
-{
-}
-
void plat_update_volume(int has_changed, int is_up)
{
}
void plat_update_volume(int has_changed, int is_up)
{
}