Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e5d4d918
Commit
e5d4d918
authored
Oct 29, 2015
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Make color cubes as big as possible.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fb90e1b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
palette.c
dlls/winex11.drv/palette.c
+3
-3
No files found.
dlls/winex11.drv/palette.c
View file @
e5d4d918
...
...
@@ -594,10 +594,10 @@ static void X11DRV_PALETTE_FillDefaultColors( const PALETTEENTRY *sys_pal_templa
if
(
palette_size
<=
NB_RESERVED_COLORS
)
return
;
while
(
i
*
i
*
i
<
(
palette_size
-
NB_RESERVED_COLORS
))
i
++
;
while
(
i
*
i
*
i
<
=
(
palette_size
-
NB_RESERVED_COLORS
))
i
++
;
no_r
=
no_g
=
no_b
=
--
i
;
if
((
no_r
*
(
no_g
+
1
)
*
no_b
)
<
(
palette_size
-
NB_RESERVED_COLORS
))
no_g
++
;
if
((
no_r
*
no_g
*
(
no_b
+
1
))
<
(
palette_size
-
NB_RESERVED_COLORS
))
no_b
++
;
if
((
no_r
*
(
no_g
+
1
)
*
no_b
)
<
=
(
palette_size
-
NB_RESERVED_COLORS
))
no_g
++
;
if
((
no_r
*
no_g
*
(
no_b
+
1
))
<
=
(
palette_size
-
NB_RESERVED_COLORS
))
no_b
++
;
inc_r
=
(
255
-
NB_COLORCUBE_START_INDEX
)
/
no_r
;
inc_g
=
(
255
-
NB_COLORCUBE_START_INDEX
)
/
no_g
;
inc_b
=
(
255
-
NB_COLORCUBE_START_INDEX
)
/
no_b
;
...
...
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