The framework handles resizing the viewport automatically.
redef fun on_resize(display)
do
if dynamic_context_cache != null then dynamic_context.resize(display, max_dynamic_resolution_ratio)
super
end
lib/gamnit/dynamic_resolution.nit:83,2--87,4
redef fun on_resize(display)
do
super
world_camera.mvp_matrix_cache = null
ui_camera.mvp_matrix_cache = null
# Update all sprites in the UI
for sprite in ui_sprites do sprite.needs_update
end
lib/gamnit/flat/flat_core.nit:482,2--491,4