Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
7e12c9ba
Commit
7e12c9ba
authored
Jun 18, 2019
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extension.c: code simplifications
parent
17d5e62b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
Extensions.c
nx-X11/programs/Xserver/hw/nxagent/Extensions.c
+3
-8
No files found.
nx-X11/programs/Xserver/hw/nxagent/Extensions.c
View file @
7e12c9ba
...
...
@@ -98,13 +98,12 @@ void nxagentInitGlxExtension(VisualPtr *visuals, DepthPtr *depths,
int
*
numVisuals
,
int
*
numDepths
,
int
*
rootDepth
,
VisualID
*
defaultVisual
)
{
miInitVisualsProcPtr
initVisuals
;
/*
* Initialize the visuals to use the GLX extension.
*/
initVisuals
=
NULL
;
miInitVisualsProcPtr
initVisuals
=
NULL
;
GlxWrapInitVisuals
(
&
initVisuals
);
...
...
@@ -372,15 +371,13 @@ static int nxagentRandRInitSizes(ScreenPtr pScreen)
int
nxagentRandRSetConfig
(
ScreenPtr
pScreen
,
Rotation
rotation
,
int
rate
,
RRScreenSizePtr
pSize
)
{
int
r
;
UpdateCurrentTime
();
/*
* Whatever size is OK for us.
*/
r
=
nxagentResizeScreen
(
pScreen
,
pSize
->
width
,
pSize
->
height
,
int
r
=
nxagentResizeScreen
(
pScreen
,
pSize
->
width
,
pSize
->
height
,
pSize
->
mmWidth
,
pSize
->
mmHeight
);
nxagentMoveViewport
(
pScreen
,
0
,
0
);
...
...
@@ -430,8 +427,6 @@ void nxagentRandRSetWindowsSize(int width, int height)
int
nxagentRandRScreenSetSize
(
ScreenPtr
pScreen
,
CARD16
width
,
CARD16
height
,
CARD32
mmWidth
,
CARD32
mmHeight
)
{
int
result
;
UpdateCurrentTime
();
if
(
nxagentOption
(
DesktopResize
)
==
1
&&
...
...
@@ -453,7 +448,7 @@ int nxagentRandRScreenSetSize(ScreenPtr pScreen, CARD16 width, CARD16 height,
nxagentChangeOption
(
Height
,
height
);
}
result
=
nxagentResizeScreen
(
pScreen
,
width
,
height
,
mmWidth
,
mmHeight
);
int
result
=
nxagentResizeScreen
(
pScreen
,
width
,
height
,
mmWidth
,
mmHeight
);
if
(
result
==
1
&&
nxagentOption
(
DesktopResize
)
==
1
&&
nxagentOption
(
Fullscreen
)
==
0
&&
nxagentOption
(
AllScreens
)
==
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment