Add example/imageviewer OnImageConfig override

This commit is contained in:
Nigel Tao committed 2021-03-08 13:25:46 +11:00
1 parent b58a961acb
commit a21e891e24
1 file changed
+1 -1
+1 -1
View File
@@ -111,7 +111,7 @@ class Callbacks : public wuffs_aux::DecodeImageCallbacks {
}
DecodeImageCallbacks::AllocResult //
OnImageConfig(const wuffs_base__image_config& image_config) {
OnImageConfig(const wuffs_base__image_config& image_config) override {
uint32_t w = image_config.pixcfg.width();
uint32_t h = image_config.pixcfg.height();
if ((w == 0) || (h == 0)) {