Skip to content

ui2: preserve fractional window edges - #106

Open
diiviocity wants to merge 1 commit into
vlang:masterfrom
diiviocity:fix/fractional-window-edges
Open

diiviocity wants to merge 1 commit into
vlang:masterfrom
diiviocity:fix/fractional-window-edges

Conversation

@diiviocity

Copy link
Copy Markdown
Member

Summary

  • Derive full-window layout bounds from the framebuffer dimensions divided by the active gg scale, preserving fractional logical dimensions.
  • Use those exact bounds for screen layout, full-window clips, menus, popovers, and the GL-surface callback.
  • Route UI clips through gg's new scissor_rectf API so framebuffer scissor edges round outward once instead of truncating logical origin and extent separately.

Validation

  • v -check examples/calculator_resizable
  • Desktop calculator at 1.5x, 958x1078 and 958x1077: no clear-color pixels on the right or bottom edges.

Depends on vlang/v#31485 (gg scissor_rectf API).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant