diff options
author | Victor Kareh <[email protected]> | 2019-10-05 22:52:11 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-10-07 12:40:38 +0200 |
commit | 87cf621d7dd53987b095323dde27677302c32052 (patch) | |
tree | c40d358db3965ee1a9ce234ea1e2c407a88a7c30 /src/ui/theme-viewer.c | |
parent | 926e3e5989f9d74d2dee28c2fb82cc0036c5fbee (diff) | |
download | marco-87cf621d7dd53987b095323dde27677302c32052.tar.bz2 marco-87cf621d7dd53987b095323dde27677302c32052.tar.xz |
theme: Render window control buttons and icons as surfaces
When loading window control buttons and icon as pixbufs, we just set
them as the source for the cairo context used to paint them. Instead, we
now convert them to cairo surfaces and scale them to the correct display
density before painting them.
This allows us to load higher resolution assets (i.e. at twice the size)
and by explicitly setting the intended size in the theme draw_ops, we
can then scale them down to fit lower resolution displays, or render
them at full density for HiDPI displays.
Diffstat (limited to 'src/ui/theme-viewer.c')
0 files changed, 0 insertions, 0 deletions