Skip to content

Commit

Permalink
I forgot what were the changes exactly... Oh well.
Browse files Browse the repository at this point in the history
  • Loading branch information
gameblabla committed Dec 3, 2020
1 parent 2587ba2 commit e16426d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
2 changes: 2 additions & 0 deletions shell/audio/alsa/sound_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ uint32_t Audio_Init()

#ifdef FRAMESKIP
snd_pcm_nonblock(handle, 1);
#else
snd_pcm_nonblock(handle, 0);
#endif

/* Allocate a hardware parameters object. */
Expand Down
4 changes: 2 additions & 2 deletions shell/emu/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void reset(void)

static int LoadGame_NGP(const char *name)
{
long size;
size_t size;
FILE* fp;

fp = fopen(name, "rb");
Expand Down Expand Up @@ -271,7 +271,7 @@ static uint32_t Timer_Read(void)
gettimeofday(&tval, 0);
return (((tval.tv_sec*1000000) + (tval.tv_usec)));
}
static long lastTick = 0, newTick;
static uint32_t lastTick = 0, newTick;
static uint32_t SkipCnt = 0, FPS = 60, FrameSkip = 0;
static const uint32_t TblSkip[5][5] = {
{0, 0, 0, 0, 0},
Expand Down
16 changes: 8 additions & 8 deletions shell/headers/shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@
#define SOUND_SAMPLES_SIZE 1024
#define DEADZONE_AXIS 8192
#elif defined(RS97)
#define SOUND_OUTPUT_FREQUENCY 22050
#define SOUND_SAMPLES_SIZE 1024
#define SOUND_OUTPUT_FREQUENCY 44100
#define SOUND_SAMPLES_SIZE 2048
#define DEADZONE_AXIS 8192
#elif defined(ARCADEMINI)
#define SOUND_OUTPUT_FREQUENCY 22050
#define SOUND_SAMPLES_SIZE 1024
#define SOUND_OUTPUT_FREQUENCY 44100
#define SOUND_SAMPLES_SIZE 2048
#define DEADZONE_AXIS 8192
#elif defined(RETROSTONE_1)
#define SOUND_OUTPUT_FREQUENCY 48000
#define SOUND_SAMPLES_SIZE 2048
#define SOUND_SAMPLES_SIZE 4096
#define DEADZONE_AXIS 8192
#elif defined(RETROSTONE_2)
#define SOUND_OUTPUT_FREQUENCY 48000
#define SOUND_SAMPLES_SIZE 2048
#define SOUND_SAMPLES_SIZE 4096
#define DEADZONE_AXIS 8192
#elif defined(GCW0)
#define SOUND_OUTPUT_FREQUENCY 44100
#define SOUND_SAMPLES_SIZE 1024
#define SOUND_SAMPLES_SIZE 2048
#define DEADZONE_AXIS 8192
#else
#define SOUND_OUTPUT_FREQUENCY 48000
#define SOUND_SAMPLES_SIZE 2048
#define SOUND_SAMPLES_SIZE 4096
#define DEADZONE_AXIS 8192
#endif

Expand Down
3 changes: 1 addition & 2 deletions shell/menu/generic/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ static void Input_Remapping()
default:
SDL_FillRect( backbuffer, NULL, 0 );
print_string("Please press button for mapping", TextWhite, TextBlue, 37, 108, backbuffer->pixels);
bitmap_scale(0,0,320,240,HOST_WIDTH_RESOLUTION,HOST_HEIGHT_RESOLUTION,backbuffer->w,0,(uint16_t* restrict)backbuffer->pixels,(uint16_t* restrict)sdl_screen->pixels);
SDL_Flip(sdl_screen);
Update_Video_Menu();
exit_map = 0;
while( !exit_map )
{
Expand Down
3 changes: 0 additions & 3 deletions shell/video/rs97/video_blit.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ void Init_Video()
SDL_ShowCursor(0);

sdl_screen = SDL_SetVideoMode(320, 240, 16, SDL_HWSURFACE
#ifdef SDL_TRIPLEBUF
| SDL_TRIPLEBUF
#endif
);

backbuffer = SDL_CreateRGBSurface(SDL_SWSURFACE, HOST_WIDTH_RESOLUTION, HOST_HEIGHT_RESOLUTION, 16, 0,0,0,0);
Expand Down

0 comments on commit e16426d

Please sign in to comment.