mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2025-10-30 08:03:03 +00:00
Switch to designated initializers to work around missing aggregate initialization compiler support
This commit is contained in:
parent
d45c4f7236
commit
186e7e7b54
1 changed files with 2 additions and 2 deletions
|
|
@ -659,11 +659,11 @@ public:
|
|||
|
||||
void queue_image_from_bytes_file(const std::string &src, const std::vector<char> &bytes) {
|
||||
// Width and height aren't used for file images, so set them to 0.
|
||||
image_from_bytes_queue.enqueue(ImageFromBytes(ImageType::File, 0, 0, src, bytes));
|
||||
image_from_bytes_queue.enqueue(ImageFromBytes{ .type = ImageType::File, .width = 0, .height = 0, .name = src, .bytes = bytes });
|
||||
}
|
||||
|
||||
void queue_image_from_bytes_rgba32(const std::string &src, const std::vector<char> &bytes, uint32_t width, uint32_t height) {
|
||||
image_from_bytes_queue.enqueue(ImageFromBytes(ImageType::RGBA32, width, height, src, bytes));
|
||||
image_from_bytes_queue.enqueue(ImageFromBytes{ .type = ImageType::RGBA32, .width = width, .height = height, .name = src, .bytes = bytes });
|
||||
}
|
||||
|
||||
void flush_image_from_bytes_queue() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue