- menu_draw_begin(0, 1);
- memset(g_menuscreen_ptr, 4, g_menuscreen_w * g_menuscreen_h * 2);
- text_out16(2, 2, "%d,%d", g_layer_x, g_layer_y);
- text_out16(2, 480 - 18, "%dx%d | d-pad: resize, R+d-pad: move", g_layer_w, g_layer_h);
- menu_draw_end();
+ if (saved_layer && last_vout_bpp == 16) {
+ int top_x = max(0, -g_layer_x * last_vout_w / 800) + 1;
+ int top_y = max(0, -g_layer_y * last_vout_h / 480) + 1;
+ char text[128];
+ memcpy(pl_vout_buf, saved_layer, saved_layer_size);
+ snprintf(text, sizeof(text), "%d,%d %dx%d",
+ g_layer_x, g_layer_y, g_layer_w, g_layer_h);
+ basic_text_out16_nf(pl_vout_buf, last_vout_w,
+ top_x, top_y, text);
+ basic_text_out16_nf(pl_vout_buf, last_vout_w, 2,
+ last_vout_h - 20, "d-pad: resize, R+d-pad: move");
+ pl_vout_buf = plat_gvideo_flip();
+ }