diff options
author | Steven Laver <lavers@google.com> | 2020-01-06 13:24:38 -0800 |
---|---|---|
committer | Steven Laver <lavers@google.com> | 2020-01-06 13:24:38 -0800 |
commit | d6c80d4db481f1d2aee430dca619fc17aa1073cc (patch) | |
tree | e31e8821ce94f04c10de1ef9584036afe2990341 /minui/resources.cpp | |
parent | 3b24e70819b04b3cc6090337eecd26b548cc7d68 (diff) | |
parent | e2cb46ac1bc47e51e6d075c3862788cf1f220301 (diff) |
Merge RP1A.200106.001
Change-Id: I802ad986f1dffebfb4ee628ed684db212ff1b634
Diffstat (limited to 'minui/resources.cpp')
-rw-r--r-- | minui/resources.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/minui/resources.cpp b/minui/resources.cpp index 00d36d5f..f635acd1 100644 --- a/minui/resources.cpp +++ b/minui/resources.cpp @@ -199,7 +199,7 @@ int res_create_display_surface(const char* name, GRSurface** pSurface) { } PixelFormat pixel_format = gr_pixel_format(); - if (pixel_format == PixelFormat::ABGR || pixel_format == PixelFormat::BGRA) { + if (pixel_format == PixelFormat::ARGB || pixel_format == PixelFormat::BGRA) { png_set_bgr(png_ptr); } @@ -271,7 +271,7 @@ int res_create_multi_display_surface(const char* name, int* frames, int* fps, surface[i] = created_surface.release(); } - if (gr_pixel_format() == PixelFormat::ABGR || gr_pixel_format() == PixelFormat::BGRA) { + if (gr_pixel_format() == PixelFormat::ARGB || gr_pixel_format() == PixelFormat::BGRA) { png_set_bgr(png_ptr); } @@ -317,7 +317,7 @@ int res_create_alpha_surface(const char* name, GRSurface** pSurface) { } PixelFormat pixel_format = gr_pixel_format(); - if (pixel_format == PixelFormat::ABGR || pixel_format == PixelFormat::BGRA) { + if (pixel_format == PixelFormat::ARGB || pixel_format == PixelFormat::BGRA) { png_set_bgr(png_ptr); } |