home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Quality Assurance
Titan Skin Feedback
Titan - Bug Reports & Issues
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Scythe42" data-source="post: 961011" data-attributes="member: 95833"><p>Regarding the DPI awareness:</p><p> </p><p>Mantis entry: <a href="http://mantis.team-mediaportal.com/view.php?id=4121" target="_blank">http://mantis.team-mediaportal.com/view.php?id=4121</a></p><p> </p><p>And that's the fix: (taken from my commit message to my experimental branch):</p><p> </p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">Fixed DPI awareness problems.</span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px"></span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">Old Code in GUIFontManager.cs</span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">// height is based on 720x576</span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">float fPercent = (GUIGraphicsContext.Height * GUIGraphicsContext.ZoomVertical) / 576.0f;</span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px"></span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">New Code in GUIFontManager.cs</span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">// font height is based on legacy hard coded resolution of 720x576</span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">float baseSize = 576;</span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px"></span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">// adjust for different DPI settings (96dpi = 100%)</span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">Graphics graphics = GUIGraphicsContext.form.CreateGraphics();</span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">baseSize *= graphics.DpiY / 96;</span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px"></span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">float fPercent = (GUIGraphicsContext.Height * GUIGraphicsContext.ZoomVertical) / baseSize;</span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px"></span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">Now the larger DPI sizes won't interfere with the skin engine anymore.</span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px"></span></span></span></p><p><span style="color: #596063"><span style="font-family: 'Monaco'"><span style="font-size: 14px">In addition fixed normal Splash Screen glitches on higher DPI sizes were the background image was not resized by changing AutoScaleMode.Font to AutoScaleMode.Dpi</span></span></span></p></blockquote><p></p>
[QUOTE="Scythe42, post: 961011, member: 95833"] Regarding the DPI awareness: Mantis entry: [url]http://mantis.team-mediaportal.com/view.php?id=4121[/url] And that's the fix: (taken from my commit message to my experimental branch): [COLOR=#596063][FONT=Monaco][SIZE=14px]Fixed DPI awareness problems. Old Code in GUIFontManager.cs // height is based on 720x576 float fPercent = (GUIGraphicsContext.Height * GUIGraphicsContext.ZoomVertical) / 576.0f; New Code in GUIFontManager.cs // font height is based on legacy hard coded resolution of 720x576 float baseSize = 576; // adjust for different DPI settings (96dpi = 100%) Graphics graphics = GUIGraphicsContext.form.CreateGraphics(); baseSize *= graphics.DpiY / 96; float fPercent = (GUIGraphicsContext.Height * GUIGraphicsContext.ZoomVertical) / baseSize; Now the larger DPI sizes won't interfere with the skin engine anymore. In addition fixed normal Splash Screen glitches on higher DPI sizes were the background image was not resized by changing AutoScaleMode.Font to AutoScaleMode.Dpi[/SIZE][/FONT][/COLOR] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Quality Assurance
Titan Skin Feedback
Titan - Bug Reports & Issues
Contact us
RSS
Top
Bottom