mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Add example/imageviewer OnImageConfig override
This commit is contained in:
1 parent
b58a961acb
commit
a21e891e24
1 file changed
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user