mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-30 10:35:16 +00:00
Zero-initialize Png struct width and height just in case
This commit is contained in:
+2
-1
@@ -10,7 +10,8 @@
|
|||||||
#include "gfx/rgba.hpp"
|
#include "gfx/rgba.hpp"
|
||||||
|
|
||||||
struct Png {
|
struct Png {
|
||||||
uint32_t width, height;
|
uint32_t width = 0;
|
||||||
|
uint32_t height = 0;
|
||||||
std::vector<Rgba> pixels{};
|
std::vector<Rgba> pixels{};
|
||||||
std::vector<Rgba> palette{};
|
std::vector<Rgba> palette{};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user