- [FIX] Warning en jail_audio.cpp
- [FIX] Warning en jdraw.cpp - [FIX] correccions en els scripts - [NEW] Afegides DLLs
This commit is contained in:
@@ -447,7 +447,7 @@ void JA_StopChannel(const int channel)
|
||||
{
|
||||
for (int i = 0; i < JA_MAX_SIMULTANEOUS_CHANNELS; i++) {
|
||||
if (channels[i].state != JA_CHANNEL_FREE) SDL_DestroyAudioStream(channels[i].stream);
|
||||
channels[channel].stream = nullptr;
|
||||
channels[i].stream = nullptr;
|
||||
channels[i].state = JA_CHANNEL_FREE;
|
||||
channels[i].pos = 0;
|
||||
channels[i].sound = NULL;
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace draw
|
||||
SDL_DisplayID display = SDL_GetPrimaryDisplay();
|
||||
const SDL_DisplayMode *mode = SDL_GetDesktopDisplayMode(display);
|
||||
if (mode) {
|
||||
printf("Native resolution: %dx%d @ %d Hz\n", mode->w, mode->h, mode->refresh_rate);
|
||||
printf("Native resolution: %ix%i @ %f Hz\n", mode->w, mode->h, mode->refresh_rate);
|
||||
}
|
||||
screen_fullscreen = true;
|
||||
sdl_window = SDL_CreateWindow(screen_title.c_str(), mode->w, mode->h, SDL_WINDOW_FULLSCREEN);
|
||||
|
||||
Reference in New Issue
Block a user