summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/red_drawable.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/red_drawable.h b/client/red_drawable.h
index 64929e8c..3fac164c 100644
--- a/client/red_drawable.h
+++ b/client/red_drawable.h
@@ -57,6 +57,10 @@ public:
A1,
};
+ static int format_copy_compatible(Format src, Format dest) {
+ return src == dest || (src == ARGB32 && dest == RGB32);
+ }
+
static int format_to_bpp(Format format) {
if (format == RedDrawable::A1) {
return 1;