mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +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 //
|
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 w = image_config.pixcfg.width();
|
||||||
uint32_t h = image_config.pixcfg.height();
|
uint32_t h = image_config.pixcfg.height();
|
||||||
if ((w == 0) || (h == 0)) {
|
if ((w == 0) || (h == 0)) {
|
||||||
|
|||||||
Reference in new issue
Block a user