diff options
Diffstat (limited to 'src/drivers/Android')
| -rw-r--r-- | src/drivers/Android/Fl_Android_Graphics_Driver.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/drivers/Android/Fl_Android_Graphics_Driver.cxx b/src/drivers/Android/Fl_Android_Graphics_Driver.cxx index 34e6a93d4..06cc3b441 100644 --- a/src/drivers/Android/Fl_Android_Graphics_Driver.cxx +++ b/src/drivers/Android/Fl_Android_Graphics_Driver.cxx @@ -1003,6 +1003,10 @@ void Fl_Android_Graphics_Driver::cache(Fl_Bitmap *bm) } *Fl_Graphics_Driver::id(bm) = (fl_uintptr_t)cache; + int *pw, *ph; + cache_w_h(bm, pw, ph); + *pw = bm->data_w(); + *ph = bm->data_h(); } void Fl_Android_Graphics_Driver::delete_bitmask(Fl_Bitmask bm) @@ -1037,6 +1041,10 @@ void Fl_Android_Graphics_Driver::cache(Fl_Pixmap *img) ::free(rgba); *Fl_Graphics_Driver::id(img) = (fl_uintptr_t)cache; + int *pw, *ph; + cache_w_h(img, pw, ph); + *pw = img->data_w(); + *ph = img->data_h(); } |
