mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 12:11:29 +00:00
* Source/NSScreen.m (-userSpaceScaleFactor):
Temporarily fix the scale factor at 1.0 until the remaining parts of the high DPI patch are committed. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32896 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a6ec05473b
commit
b4e8ecd7cf
2 changed files with 13 additions and 7 deletions
|
@ -418,13 +418,13 @@ static NSMutableArray *screenArray = nil;
|
|||
NSSize dpi;
|
||||
|
||||
srv = GSCurrentServer();
|
||||
if (srv != nil)
|
||||
{
|
||||
dpi = [GSCurrentServer() resolutionForScreen: _screenNumber];
|
||||
// take average for 72dpi
|
||||
return (dpi.width + dpi.height) / 144;
|
||||
}
|
||||
else
|
||||
//if (srv != nil)
|
||||
// {
|
||||
// dpi = [GSCurrentServer() resolutionForScreen: _screenNumber];
|
||||
// // take average for 72dpi
|
||||
// return (dpi.width + dpi.height) / 144;
|
||||
// }
|
||||
//else
|
||||
{
|
||||
return 1.0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue