KEMBAR78
GUI: Fix hard shadow of tabs under HiDPI by su-xingyu · Pull Request #4911 · scummvm/scummvm · GitHub
Skip to content

Conversation

@su-xingyu
Copy link
Contributor

@su-xingyu su-xingyu commented Apr 15, 2023

Introduce shadowIntensity to tab drawing functions.

  • New implementation can behave slightly differently with old one under fractional scaling factors. E.g. when scale=1.2 offset=2, the offset is rounded to 2.4->2 while scaling factor be 1.2, only [offset/1.2]+1=2 rectangles will be drawn

  • drawSquareShadow() and drawSquareShadowClip() are already self-contained under scaling and don't need to be changed.

Introduce 'shaodwIntensity' to shadow drawing functions
@sev-
Copy link
Member

sev- commented Apr 15, 2023

Thank you

@sev- sev- merged commit 6ff2212 into scummvm:master Apr 15, 2023
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.

2 participants