aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Screen.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Screen.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
index 0c1c177d6..dbe1d5d56 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -1332,13 +1332,16 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
rootDepth, (long unsigned int)defaultVisual);
#endif
- if ((monitorResolution < 1) && (nxagentAutoDPI == False))
+ if (monitorResolution < 1)
{
- monitorResolution = NXAGENT_DEFAULT_DPI;
- }
- else if ((monitorResolution < 1) && (nxagentAutoDPI == True))
- {
- monitorResolution = NXAGENT_AUTO_DPI;
+ if (nxagentAutoDPI)
+ {
+ monitorResolution = NXAGENT_AUTO_DPI;
+ }
+ else
+ {
+ monitorResolution = NXAGENT_DEFAULT_DPI;
+ }
}
if (!fbScreenInit(pScreen, pFrameBufferBits, nxagentOption(RootWidth), nxagentOption(RootHeight),