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
e48ceedc
Commit
e48ceedc
authored
May 25, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
Oct 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Screen.c: improve debug output
parent
ce649c02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
13 deletions
+29
-13
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+29
-13
No files found.
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
e48ceedc
...
@@ -1757,7 +1757,7 @@ N/A
...
@@ -1757,7 +1757,7 @@ N/A
}
}
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"
nxagentOpenScreen: Created new default window for screen [%d] with id [0x%x].
\n
"
,
fprintf
(
stderr
,
"
%s: Created new default window for screen [%d] with id [0x%x].
\n
"
,
__func__
,
pScreen
->
myNum
,
nxagentDefaultWindows
[
pScreen
->
myNum
]);
pScreen
->
myNum
,
nxagentDefaultWindows
[
pScreen
->
myNum
]);
#endif
#endif
...
@@ -1795,7 +1795,7 @@ N/A
...
@@ -1795,7 +1795,7 @@ N/A
#endif
#endif
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"
nxagentOpenScreen: Created new input window for screen [%d] with id [0x%x].
\n
"
,
fprintf
(
stderr
,
"
%s: Created new input window for screen [%d] with id [0x%x].
\n
"
,
__func__
,
pScreen
->
myNum
,
nxagentInputWindows
[
pScreen
->
myNum
]);
pScreen
->
myNum
,
nxagentInputWindows
[
pScreen
->
myNum
]);
#endif
#endif
}
}
...
@@ -2284,6 +2284,11 @@ static void nxagentSetRootClip (ScreenPtr pScreen, Bool enable)
...
@@ -2284,6 +2284,11 @@ static void nxagentSetRootClip (ScreenPtr pScreen, Bool enable)
Bool
nxagentResizeScreen
(
ScreenPtr
pScreen
,
int
width
,
int
height
,
Bool
nxagentResizeScreen
(
ScreenPtr
pScreen
,
int
width
,
int
height
,
int
mmWidth
,
int
mmHeight
,
Bool
doresize
)
int
mmWidth
,
int
mmHeight
,
Bool
doresize
)
{
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: called with w [%d] (%dmm) h [%d] (%dmm) doresize [%d]
\n
"
,
__func__
,
width
,
mmWidth
,
height
,
mmHeight
,
doresize
);
#endif
#ifdef TEST
#ifdef TEST
nxagentPrintAgentGeometry
(
"Before Resize Screen"
,
"nxagentResizeScreen:"
);
nxagentPrintAgentGeometry
(
"Before Resize Screen"
,
"nxagentResizeScreen:"
);
#endif
#endif
...
@@ -2345,6 +2350,11 @@ Bool nxagentResizeScreen(ScreenPtr pScreen, int width, int height,
...
@@ -2345,6 +2350,11 @@ Bool nxagentResizeScreen(ScreenPtr pScreen, int width, int height,
pScreen
->
mmWidth
=
mmWidth
;
pScreen
->
mmWidth
=
mmWidth
;
pScreen
->
mmHeight
=
mmHeight
;
pScreen
->
mmHeight
=
mmHeight
;
#ifdef DEBUG
fprintf
(
stderr
,
"%s: old w [%d] (%dmm) h [%d] (%dmm) new w [%d] (%dmm) h [%d] (%dmm)
\n
"
,
__func__
,
oldWidth
,
oldMmWidth
,
oldHeight
,
oldMmHeight
,
width
,
mmWidth
,
height
,
mmHeight
);
#endif
PixmapPtr
pPixmap
=
fbGetScreenPixmap
(
pScreen
);
PixmapPtr
pPixmap
=
fbGetScreenPixmap
(
pScreen
);
char
*
fbBits
=
realloc
(
pPixmap
->
devPrivate
.
ptr
,
PixmapBytePad
(
width
,
pScreen
->
rootDepth
)
*
char
*
fbBits
=
realloc
(
pPixmap
->
devPrivate
.
ptr
,
PixmapBytePad
(
width
,
pScreen
->
rootDepth
)
*
...
@@ -2368,15 +2378,13 @@ Bool nxagentResizeScreen(ScreenPtr pScreen, int width, int height,
...
@@ -2368,15 +2378,13 @@ Bool nxagentResizeScreen(ScreenPtr pScreen, int width, int height,
FIXME: We should try to restore the previously
FIXME: We should try to restore the previously
reallocated frame buffer pixmap.
reallocated frame buffer pixmap.
*/
*/
pScreen
->
width
=
oldWidth
;
pScreen
->
height
=
oldHeight
;
pScreen
->
mmWidth
=
oldMmWidth
;
pScreen
->
mmHeight
=
oldMmHeight
;
goto
nxagentResizeScreenError
;
goto
nxagentResizeScreenError
;
}
}
#ifdef DEBUG
fprintf
(
stderr
,
"%s: setting RootWidth/Height to [%d]x[%d]
\n
"
,
__func__
,
width
,
height
);
#endif
nxagentChangeOption
(
RootWidth
,
width
);
nxagentChangeOption
(
RootWidth
,
width
);
nxagentChangeOption
(
RootHeight
,
height
);
nxagentChangeOption
(
RootHeight
,
height
);
...
@@ -2437,10 +2445,18 @@ FIXME: We should try to restore the previously
...
@@ -2437,10 +2445,18 @@ FIXME: We should try to restore the previously
RegionInit
(
&
pScreen
->
root
->
clipList
,
&
box
,
1
);
RegionInit
(
&
pScreen
->
root
->
clipList
,
&
box
,
1
);
RegionInit
(
&
pScreen
->
root
->
borderClip
,
&
box
,
1
);
RegionInit
(
&
pScreen
->
root
->
borderClip
,
&
box
,
1
);
#ifdef DEBUG
fprintf
(
stderr
,
"%s: calling PositionWindow() [0,0] for root Window
\n
"
,
__func__
);
#endif
(
*
pScreen
->
PositionWindow
)(
pScreen
->
root
,
0
,
0
);
(
*
pScreen
->
PositionWindow
)(
pScreen
->
root
,
0
,
0
);
nxagentSetRootClip
(
pScreen
,
1
);
nxagentSetRootClip
(
pScreen
,
1
);
#ifdef DEBUG
fprintf
(
stderr
,
"%s: moving root window to [%d,%d]
\n
"
,
__func__
,
nxagentOption
(
RootX
),
nxagentOption
(
RootY
));
#endif
XMoveWindow
(
nxagentDisplay
,
nxagentWindow
(
screenInfo
.
screens
[
0
]
->
root
),
XMoveWindow
(
nxagentDisplay
,
nxagentWindow
(
screenInfo
.
screens
[
0
]
->
root
),
nxagentOption
(
RootX
),
nxagentOption
(
RootY
));
nxagentOption
(
RootX
),
nxagentOption
(
RootY
));
...
@@ -2807,7 +2823,7 @@ int nxagentShadowCreateMainWindow(ScreenPtr pScreen, WindowPtr pWin, int width,
...
@@ -2807,7 +2823,7 @@ int nxagentShadowCreateMainWindow(ScreenPtr pScreen, WindowPtr pWin, int width,
nxagentShadowPixmapPtr
->
drawable
.
id
=
accessPixmapID
;
nxagentShadowPixmapPtr
->
drawable
.
id
=
accessPixmapID
;
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"nxagentShadowCreateMainWindow: nxagentShadowPixmapPtr [%p] PixmapM -> drawable.id [%
l
u].
\n
"
,
fprintf
(
stderr
,
"nxagentShadowCreateMainWindow: nxagentShadowPixmapPtr [%p] PixmapM -> drawable.id [%u].
\n
"
,
(
void
*
)
nxagentShadowPixmapPtr
,
nxagentShadowPixmapPtr
->
drawable
.
id
);
(
void
*
)
nxagentShadowPixmapPtr
,
nxagentShadowPixmapPtr
->
drawable
.
id
);
fprintf
(
stderr
,
"nxagentShadowCreateMainWindow: Create pixmap with width [%d] height [%d] depth [%d].
\n
"
,
fprintf
(
stderr
,
"nxagentShadowCreateMainWindow: Create pixmap with width [%d] height [%d] depth [%d].
\n
"
,
nxagentShadowWidth
,
nxagentShadowHeight
,
(
int
)
nxagentShadowDepth
);
nxagentShadowWidth
,
nxagentShadowHeight
,
(
int
)
nxagentShadowDepth
);
...
@@ -2884,10 +2900,10 @@ int nxagentShadowCreateMainWindow(ScreenPtr pScreen, WindowPtr pWin, int width,
...
@@ -2884,10 +2900,10 @@ int nxagentShadowCreateMainWindow(ScreenPtr pScreen, WindowPtr pWin, int width,
{
{
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"nxagentShadowCreateMainWindow: Create window with nxagentShadowWindowPtr [%p]"
fprintf
(
stderr
,
"nxagentShadowCreateMainWindow: Create window with nxagentShadowWindowPtr [%p]"
"nxagentShadowWindowPtr -> drawable.id [%
l
u].
\n
"
,
(
void
*
)
nxagentShadowWindowPtr
,
"nxagentShadowWindowPtr -> drawable.id [%u].
\n
"
,
(
void
*
)
nxagentShadowWindowPtr
,
nxagentShadowWindowPtr
->
drawable
.
id
);
nxagentShadowWindowPtr
->
drawable
.
id
);
fprintf
(
stderr
,
"nxagentShadowCreateMainWindow: parent nxagentShadowWindowPtr [%p] parent -> drawable.id [%
l
u].
\n
"
,
fprintf
(
stderr
,
"nxagentShadowCreateMainWindow: parent nxagentShadowWindowPtr [%p] parent -> drawable.id [%u].
\n
"
,
(
void
*
)
nxagentShadowWindowPtr
->
parent
,
nxagentShadowWindowPtr
->
parent
->
drawable
.
id
);
(
void
*
)
nxagentShadowWindowPtr
->
parent
,
nxagentShadowWindowPtr
->
parent
->
drawable
.
id
);
#endif
#endif
...
@@ -3669,8 +3685,8 @@ void nxagentAdjustCustomMode(ScreenPtr pScreen)
...
@@ -3669,8 +3685,8 @@ void nxagentAdjustCustomMode(ScreenPtr pScreen)
}
}
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"%s: Going to destroy mode
%p with refcnt %d
.
\n
"
,
fprintf
(
stderr
,
"%s: Going to destroy mode
[%p] with refcnt [%d]
.
\n
"
,
__func__
,
nxagentRRCustomMode
,
nxagentRRCustomMode
->
refcnt
);
__func__
,
(
void
*
)
nxagentRRCustomMode
,
nxagentRRCustomMode
->
refcnt
);
#endif
#endif
RRModeDestroy
(
nxagentRRCustomMode
);
RRModeDestroy
(
nxagentRRCustomMode
);
...
...
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