summaryrefslogtreecommitdiffstats
path: root/minui/resources.cpp
diff options
context:
space:
mode:
authorAdrian Salido <salidoa@google.com>2019-12-13 05:18:09 +0100
committerAdrian Salido <salidoa@google.com>2019-12-13 19:53:33 +0100
commitcc7b7eb7379f08d113133b865a28dd9c3b0f0852 (patch)
tree758ff487cae26b24a5cf6fc75d01a85f813d3bde /minui/resources.cpp
parentMerge "Generate linker config from recovery init" (diff)
downloadandroid_bootable_recovery-cc7b7eb7379f08d113133b865a28dd9c3b0f0852.tar
android_bootable_recovery-cc7b7eb7379f08d113133b865a28dd9c3b0f0852.tar.gz
android_bootable_recovery-cc7b7eb7379f08d113133b865a28dd9c3b0f0852.tar.bz2
android_bootable_recovery-cc7b7eb7379f08d113133b865a28dd9c3b0f0852.tar.lz
android_bootable_recovery-cc7b7eb7379f08d113133b865a28dd9c3b0f0852.tar.xz
android_bootable_recovery-cc7b7eb7379f08d113133b865a28dd9c3b0f0852.tar.zst
android_bootable_recovery-cc7b7eb7379f08d113133b865a28dd9c3b0f0852.zip
Diffstat (limited to '')
-rw-r--r--minui/resources.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/minui/resources.cpp b/minui/resources.cpp
index 00d36d5fb..f635acd1a 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);
}