mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Fixed white space on the left/top of background images with an origin of "0.5 0.5". Hopefully.
Added additional error output when SDL renderer fails to create window.
This commit is contained in:
parent
4efbafdad9
commit
678cd10029
|
@ -66,7 +66,7 @@ namespace Renderer
|
|||
|
||||
if(sdlWindow == NULL)
|
||||
{
|
||||
LOG(LogError) << "Error creating SDL window!";
|
||||
LOG(LogError) << "Error creating SDL window!\n\t" << SDL_GetError();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -189,8 +189,8 @@ void ImageComponent::updateVertices()
|
|||
const float width = round(bottomRight.x() - topLeft.x());
|
||||
const float height = round(bottomRight.y() - topLeft.y());
|
||||
|
||||
topLeft[0] = round(topLeft[0]);
|
||||
topLeft[1] = round(topLeft[1]);
|
||||
topLeft[0] = floor(topLeft[0]);
|
||||
topLeft[1] = floor(topLeft[1]);
|
||||
bottomRight[0] = topLeft[0] + width;
|
||||
bottomRight[1] = topLeft[1] + height;
|
||||
|
||||
|
|
Loading…
Reference in a new issue