mirror of
https://github.com/robmcmullen/apple2.git
synced 2024-06-18 08:29:29 +00:00
Fix trash on sides of screen in full screen mode.
Also, added a bit more diagnostics for the case when the audio subsystem fails to initialize.
This commit is contained in:
parent
f8d9fa1865
commit
8e30a909ce
|
@ -79,6 +79,7 @@ void SoundInit(void)
|
||||||
if (device == 0)
|
if (device == 0)
|
||||||
{
|
{
|
||||||
WriteLog("Sound: Failed to initialize SDL sound.\n");
|
WriteLog("Sound: Failed to initialize SDL sound.\n");
|
||||||
|
WriteLog("SDL sez: %s\n", SDL_GetError());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
// there [DONE]
|
// there [DONE]
|
||||||
//
|
//
|
||||||
|
|
||||||
// Display routines seem MUCH slower now... !!! INVESTIGATE !!! [not anymore]
|
|
||||||
|
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
#include <string.h> // for memset()
|
#include <string.h> // for memset()
|
||||||
|
@ -605,9 +603,9 @@ static void Render80ColumnText(void)
|
||||||
static void RenderLoRes(uint16_t toLine/*= 24*/)
|
static void RenderLoRes(uint16_t toLine/*= 24*/)
|
||||||
{
|
{
|
||||||
// NOTE: The green mono rendering doesn't skip every other line... !!! FIX !!!
|
// NOTE: The green mono rendering doesn't skip every other line... !!! FIX !!!
|
||||||
// Also, we could set up three different Render functions depending on which
|
// Also, we could set up three different Render functions depending on
|
||||||
// render type was set and call it with a function pointer. Would be faster
|
// which render type was set and call it with a function pointer. Would
|
||||||
// then the nested ifs we have now.
|
// be faster than the nested ifs we have now.
|
||||||
/*
|
/*
|
||||||
Note that these colors correspond to the bit patterns generated by the numbers 0-F in order:
|
Note that these colors correspond to the bit patterns generated by the numbers 0-F in order:
|
||||||
Color #s correspond to the bit patterns in reverse... Interesting!
|
Color #s correspond to the bit patterns in reverse... Interesting!
|
||||||
|
@ -1232,6 +1230,7 @@ void RenderAppleScreen(SDL_Renderer * renderer)
|
||||||
SDL_LockTexture(sdlTexture, NULL, (void **)&scrBuffer, &scrPitch);
|
SDL_LockTexture(sdlTexture, NULL, (void **)&scrBuffer, &scrPitch);
|
||||||
RenderVideoFrame();
|
RenderVideoFrame();
|
||||||
SDL_UnlockTexture(sdlTexture);
|
SDL_UnlockTexture(sdlTexture);
|
||||||
|
SDL_RenderClear(renderer); // Without this, full screen has trash on the sides
|
||||||
SDL_RenderCopy(renderer, sdlTexture, NULL, NULL);
|
SDL_RenderCopy(renderer, sdlTexture, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user