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
6f01462b
Commit
6f01462b
authored
Apr 15, 1999
by
Pavel Roskin
Committed by
Alexandre Julliard
Apr 15, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ugly disabled controls and black background in Write and Lotus
Notes.
parent
026f705d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
bitblt.c
graphics/x11drv/bitblt.c
+1
-1
palette.c
graphics/x11drv/palette.c
+5
-1
x11drv.h
include/x11drv.h
+0
-1
main.c
windows/x11drv/main.c
+2
-0
No files found.
graphics/x11drv/bitblt.c
View file @
6f01462b
...
...
@@ -1293,7 +1293,7 @@ static BOOL BITBLT_InternalStretchBlt( DC *dcDst, INT xDst, INT yDst,
{
XSetFunction
(
display
,
physDevDst
->
gc
,
GXcopy
);
XSetForeground
(
display
,
physDevDst
->
gc
,
X11DRV_PALETTE_PaletteToXPixel
[
X11DRV_DevCaps
.
sizePalette
-
1
]
);
WhitePixelOfScreen
(
X11DRV_GetXScreen
()
)
);
XSetFillStyle
(
display
,
physDevDst
->
gc
,
FillSolid
);
}
XFillRectangle
(
display
,
physDevDst
->
drawable
,
physDevDst
->
gc
,
...
...
graphics/x11drv/palette.c
View file @
6f01462b
...
...
@@ -88,6 +88,7 @@ static void X11DRV_PALETTE_ComputeShifts(unsigned long maskbits, int *shift, int
static
void
X11DRV_PALETTE_FillDefaultColors
(
void
);
static
void
X11DRV_PALETTE_FormatSystemPalette
(
void
);
static
BOOL
X11DRV_PALETTE_CheckSysColor
(
COLORREF
c
);
static
int
X11DRV_PALETTE_LookupSystemXPixel
(
COLORREF
col
);
/***********************************************************************
* COLOR_Init
...
...
@@ -788,7 +789,7 @@ int X11DRV_PALETTE_ToPhysical( DC *dc, COLORREF color )
/***********************************************************************
* X11DRV_PALETTE_LookupSystemXPixel
*/
int
X11DRV_PALETTE_LookupSystemXPixel
(
COLORREF
col
)
static
int
X11DRV_PALETTE_LookupSystemXPixel
(
COLORREF
col
)
{
int
i
,
best
=
0
,
diff
=
0x7fffffff
;
int
size
=
X11DRV_DevCaps
.
sizePalette
;
...
...
@@ -955,6 +956,9 @@ int X11DRV_PALETTE_UpdateMapping(PALETTEOBJ *palPtr)
{
int
i
,
index
,
realized
=
0
;
if
(
!
X11DRV_DevCaps
.
sizePalette
)
return
0
;
for
(
i
=
0
;
i
<
20
;
i
++
)
{
index
=
X11DRV_PALETTE_LookupSystemXPixel
(
*
(
COLORREF
*
)(
palPtr
->
logpalette
.
palPalEntry
+
i
));
...
...
include/x11drv.h
View file @
6f01462b
...
...
@@ -286,7 +286,6 @@ extern void X11DRV_PALETTE_Cleanup(void);
extern
COLORREF
X11DRV_PALETTE_ToLogical
(
int
pixel
);
extern
int
X11DRV_PALETTE_ToPhysical
(
struct
tagDC
*
dc
,
COLORREF
color
);
extern
int
X11DRV_PALETTE_LookupSystemXPixel
(
COLORREF
col
);
extern
struct
tagPALETTE_DRIVER
X11DRV_PALETTE_Driver
;
...
...
windows/x11drv/main.c
View file @
6f01462b
...
...
@@ -125,6 +125,8 @@ BOOL X11DRV_USER_Initialize(void)
X11DRV_USER_ParseOptions
(
Options
.
argc
,
Options
.
argv
);
X11DRV_USER_Create
();
X11DRV_USER_SaveSetup
();
return
TRUE
;
}
/***********************************************************************
...
...
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