| 23 | static jfieldID TGFXView_nativePtr; |
| 24 | |
| 25 | void JTGFXView::updateSize() { |
| 26 | auto width = ANativeWindow_getWidth(nativeWindow); |
| 27 | auto height = ANativeWindow_getHeight(nativeWindow); |
| 28 | auto sizeChanged = appHost->updateScreen(width, height, appHost->density()); |
| 29 | if (sizeChanged) { |
| 30 | window->invalidSize(); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | void JTGFXView::draw(int index, float zoom, float offsetX, float offsetY) { |
| 35 | if (appHost->width() <= 0 || appHost->height() <= 0) { |
no test coverage detected