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
ca531cce
Commit
ca531cce
authored
Jan 28, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Splash.c: use more Xlib types
parent
2cddd5c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
15 deletions
+12
-15
Screen.h
nx-X11/programs/Xserver/hw/nxagent/Screen.h
+0
-2
Splash.c
nx-X11/programs/Xserver/hw/nxagent/Splash.c
+8
-8
Splash.h
nx-X11/programs/Xserver/hw/nxagent/Splash.h
+4
-5
No files found.
nx-X11/programs/Xserver/hw/nxagent/Screen.h
View file @
ca531cce
...
...
@@ -59,8 +59,6 @@ extern int nxagentClients;
extern
ScreenPtr
nxagentDefaultScreen
;
extern
Pixmap
nxagentPixmapLogo
;
extern
Window
nxagentIconWindow
;
extern
Window
nxagentFullscreenWindow
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Splash.c
View file @
ca531cce
...
...
@@ -57,13 +57,13 @@
#define nxagentLogoDarkGray 0x222222
#define nxagentLogoLightGray 0xbbbbbb
Pixmap
nxagentPixmapLogo
;
Window
nxagentSplashWindow
=
None
;
Xlib
Pixmap
nxagentPixmapLogo
;
Xlib
Window
nxagentSplashWindow
=
None
;
Bool
nxagentWMPassed
=
False
;
static
void
nxagentPaintLogo
(
Window
win
,
XlibGC
gc
,
int
scale
,
int
width
,
int
height
);
static
void
nxagentPaintLogo
(
Xlib
Window
win
,
XlibGC
gc
,
int
scale
,
int
width
,
int
height
);
void
nxagentShowSplashWindow
(
Window
parentWindow
)
void
nxagentShowSplashWindow
(
Xlib
Window
parentWindow
)
{
XWindowAttributes
getAttributes
;
XWindowChanges
values
;
...
...
@@ -138,7 +138,7 @@ void nxagentShowSplashWindow(Window parentWindow)
BlackPixel
(
nxagentDisplay
,
0
));
#ifdef TEST
fprintf
(
stderr
,
"%s: Created new splash window with id [
%ld
].
\n
"
,
__func__
,
fprintf
(
stderr
,
"%s: Created new splash window with id [
0x%lx
].
\n
"
,
__func__
,
nxagentSplashWindow
);
#endif
...
...
@@ -165,7 +165,7 @@ Bool nxagentHaveSplashWindow(void)
return
(
nxagentSplashWindow
!=
None
);
}
void
nxagentPaintLogo
(
Window
win
,
XlibGC
gc
,
int
scale
,
int
width
,
int
height
)
void
nxagentPaintLogo
(
Xlib
Window
win
,
XlibGC
gc
,
int
scale
,
int
width
,
int
height
)
{
int
depth
=
DefaultDepth
(
nxagentDisplay
,
DefaultScreen
(
nxagentDisplay
));
...
...
@@ -435,7 +435,7 @@ void nxagentRemoveSplashWindow(void)
nxagentRefreshWindows
(
screenInfo
.
screens
[
0
]
->
root
);
#ifdef TEST
fprintf
(
stderr
,
"%s: setting the ownership of %s (%d) on window
0x%lx
\n
"
,
__func__
,
fprintf
(
stderr
,
"%s: setting the ownership of %s (%d) on window
[0x%lx]
\n
"
,
__func__
,
"NX_CUT_BUFFER_SERVER"
,
(
int
)
serverTransToAgentProperty
,
nxagentWindow
(
screenInfo
.
screens
[
0
]
->
root
));
#endif
...
...
@@ -446,6 +446,6 @@ void nxagentRemoveSplashWindow(void)
if
(
nxagentPixmapLogo
)
{
XFreePixmap
(
nxagentDisplay
,
nxagentPixmapLogo
);
nxagentPixmapLogo
=
(
Pixmap
)
0
;
nxagentPixmapLogo
=
(
Xlib
Pixmap
)
0
;
}
}
nx-X11/programs/Xserver/hw/nxagent/Splash.h
View file @
ca531cce
...
...
@@ -37,10 +37,9 @@ extern int XdmcpTimeOutRtx;
extern
int
XdmcpStartTime
;
extern
int
nxagentXdmcpUp
;
extern
Window
nxagentSplashWindow
;
extern
void
nxagentShowSplashWindow
(
Window
);
extern
void
nxagentRemoveSplashWindow
();
#ifdef XlibWindow
extern
void
nxagentShowSplashWindow
(
XlibWindow
);
#endif
extern
void
nxagentRemoveSplashWindow
(
void
);
extern
Bool
nxagentHaveSplashWindow
(
void
);
#endif
/* __Splash_H__ */
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