@@ -15,10 +15,7 @@ struct window_t {
1515 struct dirtylist_t * dirtylist; /* Dirty rectangle list */
1616 struct fifo_t * event; /* Event FIFO queue */
1717 struct hmap_t * map; /* Input device mapping */
18- struct {
19- struct surface_t * s; /* Watermark Surface */
20- struct region_t r; /* Watermark region */
21- } watermark;
18+ int copyright; /* Copyright flag */
2219 int gmflag; /* Global matrix update flag */
2320 int dpi; /* Screen DPI */
2421};
@@ -98,7 +95,6 @@ Conversion formula: `px = max(dpi * dp / 160, 1)`
9895| ` window_dp_to_px(w, dp) ` | Convert dp to pixels (inline) |
9996| ` window_set_backlight(w, brightness) ` | Set backlight brightness (inline) |
10097| ` window_get_backlight(w) ` | Get backlight brightness (inline) |
101- | ` window_set_watermark(w, buf, len) ` | Set watermark image (PNG data) |
10298| ` window_set_matrix(w, m) ` | Set the local transform matrix |
10399
104100### Dirty Rectangle and Presentation
@@ -167,5 +163,4 @@ int bl = window_get_backlight(w);
167163- The rendering Surface pixel format is 32-bit premultiplied ARGB
168164- The dirty rectangle mechanism avoids full-screen refresh, improving rendering efficiency
169165- `window_present_commit()` uses G2D hardware acceleration (if available) for Surface compositing
170- - A default XSTAR watermark is set during `window_alloc()`; it can be customized via `window_set_watermark()`
171166- `window_pump_event()` is non-blocking; returns 0 immediately when no events are available
0 commit comments