Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Port Drawing from Cairo to GtkSnapshot API #61

Open
A6GibKm opened this issue Jan 31, 2024 · 3 comments · May be fixed by #64
Open

Port Drawing from Cairo to GtkSnapshot API #61

A6GibKm opened this issue Jan 31, 2024 · 3 comments · May be fixed by #64

Comments

@A6GibKm
Copy link
Contributor

A6GibKm commented Jan 31, 2024

While the current code works, Cairo is drawn on the CPU rather than the GPU which might be less performant. On a more important note, Cairo uses physical pixels rather than logical pixels for its sizing. This can make drawing blurry while using GDK_SCALE=2 (e.g. for HIDPI screens).

@vixalien
Copy link
Owner

You're right. This is something I'm looking forward to, using Gtk4 paths et, all. Will keep you posted!

@A6GibKm
Copy link
Contributor Author

A6GibKm commented Feb 1, 2024

By the way, for this usecase you dont need gskpaths, rectangles would be fine

@vixalien
Copy link
Owner

Hmm... I need to familiarize myself with the API

@vixalien vixalien linked a pull request Feb 19, 2024 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants