Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
97ba6732
Commit
97ba6732
authored
Nov 30, 2001
by
Glenn Schrader
Committed by
Alexandre Julliard
Nov 30, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use gdi_display everywhere to avoid BadColor errors.
parent
e9b4fd18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dga2.c
dlls/x11drv/dga2.c
+4
-4
No files found.
dlls/x11drv/dga2.c
View file @
97ba6732
...
...
@@ -102,7 +102,7 @@ static DWORD PASCAL X11DRV_XF86DGA2_SetMode(LPDDHAL_SETMODEDATA data)
{
LPDDRAWI_DIRECTDRAW_LCL
ddlocal
=
data
->
lpDD
->
lpExclusiveOwner
;
DWORD
vram
;
Display
*
display
=
thread_display
()
;
Display
*
display
=
gdi_display
;
data
->
ddRVal
=
DD_OK
;
if
(
data
->
dwModeIndex
)
{
...
...
@@ -174,7 +174,7 @@ static DWORD PASCAL X11DRV_XF86DGA2_CreateSurface(LPDDHAL_CREATESURFACEDATA data
static
DWORD
PASCAL
X11DRV_XF86DGA2_CreatePalette
(
LPDDHAL_CREATEPALETTEDATA
data
)
{
Display
*
display
=
thread_display
()
;
Display
*
display
=
gdi_display
;
data
->
lpDDPalette
->
u1
.
dwReserved1
=
TSXDGACreateColormap
(
display
,
DefaultScreen
(
display
),
dga_dev
,
AllocAll
);
if
(
data
->
lpColorTable
)
X11DRV_DDHAL_SetPalEntries
(
data
->
lpDDPalette
->
u1
.
dwReserved1
,
0
,
256
,
...
...
@@ -185,7 +185,7 @@ static DWORD PASCAL X11DRV_XF86DGA2_CreatePalette(LPDDHAL_CREATEPALETTEDATA data
static
DWORD
PASCAL
X11DRV_XF86DGA2_Flip
(
LPDDHAL_FLIPDATA
data
)
{
Display
*
display
=
thread_display
()
;
Display
*
display
=
gdi_display
;
if
(
data
->
lpSurfCurr
==
X11DRV_DD_Primary
)
{
DWORD
ofs
=
data
->
lpSurfCurr
->
lpGbl
->
fpVidMem
-
dga_mem
.
fpStart
;
TSXDGASetViewport
(
display
,
DefaultScreen
(
display
),
...
...
@@ -199,7 +199,7 @@ static DWORD PASCAL X11DRV_XF86DGA2_Flip(LPDDHAL_FLIPDATA data)
static
DWORD
PASCAL
X11DRV_XF86DGA2_SetPalette
(
LPDDHAL_SETPALETTEDATA
data
)
{
Display
*
display
=
thread_display
()
;
Display
*
display
=
gdi_display
;
if
((
data
->
lpDDSurface
==
X11DRV_DD_Primary
)
&&
data
->
lpDDPalette
&&
data
->
lpDDPalette
->
u1
.
dwReserved1
)
{
TSXDGAInstallColormap
(
display
,
DefaultScreen
(
display
),
data
->
lpDDPalette
->
u1
.
dwReserved1
);
...
...
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