Added a shared render helper and GTK3 draw handler with clip handling while keeping GTK2 expose wiring behind build guards in xtext.c.

Added a stored GTK3 draw cairo context to the widget struct and initialized it during setup.
This commit is contained in:
2026-01-31 12:09:02 -07:00
parent 36a369fac8
commit 56845a64d9
2 changed files with 48 additions and 3 deletions

View File

@@ -148,6 +148,7 @@ struct _GtkXText
cairo_surface_t *background_surface; /* 0 = use palette[19] */
GdkWindow *draw_window; /* points to ->window */
cairo_surface_t *draw_surface; /* temporary surface for offscreen draws */
cairo_t *draw_cr; /* GTK3 draw context */
GdkCursor *hand_cursor;
GdkCursor *resize_cursor;