mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
(Windows) Fixed a few MSVC compiler warnings.
This commit is contained in:
parent
a42d63e567
commit
35970dd95d
|
@ -459,9 +459,9 @@ void Window::render()
|
|||
#if (CLOCK_BACKGROUND_CREATION)
|
||||
const auto backgroundStartTime = std::chrono::system_clock::now();
|
||||
#endif
|
||||
unsigned char* processedTexture =
|
||||
new unsigned char[Renderer::getScreenWidth() * Renderer::getScreenHeight() *
|
||||
4.0f];
|
||||
unsigned char* processedTexture {
|
||||
new unsigned char[static_cast<size_t>(Renderer::getScreenWidth()) *
|
||||
static_cast<size_t>(Renderer::getScreenHeight()) * 4]};
|
||||
|
||||
// De-focus the background using multiple passes of gaussian blur, with the number
|
||||
// of iterations relative to the screen resolution.
|
||||
|
|
|
@ -453,10 +453,10 @@ namespace Renderer
|
|||
{
|
||||
Vertex vertices[4];
|
||||
std::vector<unsigned int> shaderList;
|
||||
GLuint width = getScreenWidth();
|
||||
GLuint height = getScreenHeight();
|
||||
float widthf = static_cast<float>(width);
|
||||
float heightf = static_cast<float>(height);
|
||||
GLuint width {static_cast<GLuint>(getScreenWidth())};
|
||||
GLuint height {static_cast<GLuint>(getScreenHeight())};
|
||||
float widthf {static_cast<float>(width)};
|
||||
float heightf {static_cast<float>(height)};
|
||||
|
||||
// Set vertex positions and texture coordinates to full screen as all
|
||||
// postprocessing is applied to the complete screen area.
|
||||
|
|
|
@ -84,7 +84,7 @@ Font::Font(int size, const std::string& path)
|
|||
LOG(LogWarning) << "Requested font size too small, changing to minimum supported size";
|
||||
}
|
||||
else if (mSize > Renderer::getScreenHeight()) {
|
||||
mSize = Renderer::getScreenHeight();
|
||||
mSize = static_cast<int>(Renderer::getScreenHeight());
|
||||
LOG(LogWarning) << "Requested font size too large, changing to maximum supported size";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue