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
41bfed97
Commit
41bfed97
authored
Aug 15, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Aug 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Splash.c: remove global variables for colors
Make them defines. Also determine the screen depth dynamically.
parent
e12983a6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
30 deletions
+8
-30
Display.c
nx-X11/programs/Xserver/hw/nxagent/Display.c
+0
-16
Splash.c
nx-X11/programs/Xserver/hw/nxagent/Splash.c
+8
-8
Splash.h
nx-X11/programs/Xserver/hw/nxagent/Splash.h
+0
-6
No files found.
nx-X11/programs/Xserver/hw/nxagent/Display.c
View file @
41bfed97
...
...
@@ -1387,15 +1387,6 @@ FIXME: Use of nxagentParentWindow is strongly deprecated.
nxagentChangeOption
(
BorderWidth
,
1
);
}
nxagentLogoDepth
=
DefaultDepth
(
nxagentDisplay
,
DefaultScreen
(
nxagentDisplay
)
);
nxagentLogoBlack
=
0x000000
;
nxagentLogoRed
=
0xff0000
;
nxagentLogoWhite
=
0xffffff
;
nxagentLogoGray
=
0x222222
;
#ifdef WATCH
fprintf
(
stderr
,
"nxagentOpenDisplay: Watchpoint 5.1.
\n
"
);
...
...
@@ -2827,13 +2818,6 @@ Bool nxagentReconnectDisplay(void *p0)
nxagentConfineWindow
);
#endif
nxagentLogoDepth
=
DefaultDepth
(
nxagentDisplay
,
DefaultScreen
(
nxagentDisplay
));
nxagentLogoBlack
=
0x000000
;
nxagentLogoRed
=
0xff0000
;
nxagentLogoWhite
=
0xffffff
;
nxagentLogoGray
=
0x222222
;
useXpmIcon
=
nxagentMakeIcon
(
nxagentDisplay
,
&
nxagentIconPixmap
,
&
nxagentIconShape
);
/*
...
...
nx-X11/programs/Xserver/hw/nxagent/Splash.c
View file @
41bfed97
...
...
@@ -58,11 +58,10 @@
* Colors used to paint the splash screen.
*/
int
nxagentLogoDepth
;
int
nxagentLogoWhite
;
int
nxagentLogoRed
;
int
nxagentLogoBlack
;
int
nxagentLogoGray
;
#define nxagentLogoWhite 0xffffff
#define nxagentLogoRed 0xff0000
#define nxagentLogoBlack 0x000000
#define nxagentLogoGray 0x222222
static
void
nxagentPaintLogo
(
Window
win
,
GC
gc
,
int
scale
,
int
width
,
int
height
);
...
...
@@ -176,6 +175,8 @@ void nxagentShowSplashWindow(Window parentWindow)
void
nxagentPaintLogo
(
Window
win
,
GC
gc
,
int
scale
,
int
width
,
int
height
)
{
int
depth
=
DefaultDepth
(
nxagentDisplay
,
DefaultScreen
(
nxagentDisplay
));
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Got called.
\n
"
,
__func__
);
#endif
...
...
@@ -183,9 +184,8 @@ void nxagentPaintLogo(Window win, GC gc, int scale, int width, int height)
#ifdef NXAGENT_LOGO_DEBUG
fprintf
(
stderr
,
"%s: begin
\n
"
,
__func__
);
fprintf
(
stderr
,
"%s: gen params are: w=%d h=%d d=%d r=%x w=%x b=%x
\n
"
,
__func__
,
width
,
height
,
nxagentLogoDepth
,
nxagentLogoRed
,
nxagentLogoWhite
,
nxagentLogoBlack
);
width
,
height
,
depth
,
nxagentLogoRed
,
nxagentLogoWhite
,
nxagentLogoBlack
);
#endif
int
w
=
width
/
scale
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Splash.h
View file @
41bfed97
...
...
@@ -37,12 +37,6 @@ extern int XdmcpTimeOutRtx;
extern
int
XdmcpStartTime
;
extern
int
nxagentXdmcpUp
;
extern
int
nxagentLogoDepth
;
extern
int
nxagentLogoWhite
;
extern
int
nxagentLogoRed
;
extern
int
nxagentLogoBlack
;
extern
int
nxagentLogoGray
;
extern
Window
nxagentSplashWindow
;
extern
int
nxagentWMPassed
;
...
...
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