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
1d8f92c8
Commit
1d8f92c8
authored
Jul 10, 2002
by
Ove Kaaven
Committed by
Alexandre Julliard
Jul 10, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the flags fields of IDirectDrawPaletteImpl, as we should use
the dwFlags field of DDRAWI_DDRAWPALETTE_GBL structure instead.
parent
ea20614e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
ddraw_private.h
dlls/ddraw/ddraw_private.h
+0
-1
main.c
dlls/ddraw/dpalette/main.c
+6
-6
main.c
dlls/ddraw/dsurface/main.c
+2
-2
No files found.
dlls/ddraw/ddraw_private.h
View file @
1d8f92c8
...
...
@@ -169,7 +169,6 @@ struct IDirectDrawPaletteImpl
DDRAWI_DDRAWPALETTE_GBL
global
;
/* IDirectDrawPalette fields */
DWORD
flags
;
HPALETTE
hpal
;
WORD
palVersion
,
palNumEntries
;
/* LOGPALETTE */
PALETTEENTRY
palents
[
256
];
...
...
dlls/ddraw/dpalette/main.c
View file @
1d8f92c8
...
...
@@ -49,7 +49,6 @@ HRESULT Main_DirectDrawPalette_Construct(IDirectDrawPaletteImpl* This,
if
(
dwFlags
&
DDPCAPS_8BITENTRIES
)
WARN
(
"creating palette with 8 bit entries
\n
"
);
This
->
flags
=
dwFlags
;
This
->
palNumEntries
=
Main_DirectDrawPalette_Size
(
dwFlags
);
This
->
ref
=
1
;
...
...
@@ -57,6 +56,7 @@ HRESULT Main_DirectDrawPalette_Construct(IDirectDrawPaletteImpl* This,
This
->
local
.
lpDD_lcl
=
&
pDD
->
local
;
This
->
global
.
lpDD_lcl
=
&
pDD
->
local
;
This
->
global
.
dwProcessId
=
GetCurrentProcessId
();
This
->
global
.
dwFlags
=
dwFlags
;
This
->
final_release
=
Main_DirectDrawPalette_final_release
;
ICOM_INIT_INTERFACE
(
This
,
IDirectDrawPalette
,
DDRAW_Main_Palette_VTable
);
...
...
@@ -116,10 +116,10 @@ Main_DirectDrawPalette_GetEntries(LPDIRECTDRAWPALETTE iface, DWORD dwFlags,
palent
);
if
(
dwFlags
!=
0
)
return
DDERR_INVALIDPARAMS
;
/* unchecked */
if
(
dwStart
+
dwCount
>
Main_DirectDrawPalette_Size
(
This
->
f
lags
))
if
(
dwStart
+
dwCount
>
Main_DirectDrawPalette_Size
(
This
->
global
.
dwF
lags
))
return
DDERR_INVALIDPARAMS
;
if
(
This
->
f
lags
&
DDPCAPS_8BITENTRIES
)
if
(
This
->
global
.
dwF
lags
&
DDPCAPS_8BITENTRIES
)
{
int
i
;
LPBYTE
entry
=
(
LPBYTE
)
palent
;
...
...
@@ -143,7 +143,7 @@ Main_DirectDrawPalette_SetEntries(LPDIRECTDRAWPALETTE iface, DWORD dwFlags,
TRACE
(
"(%p)->SetEntries(%08lx,%ld,%ld,%p)
\n
"
,
This
,
dwFlags
,
dwStart
,
dwCount
,
palent
);
if
(
This
->
f
lags
&
DDPCAPS_8BITENTRIES
)
if
(
This
->
global
.
dwF
lags
&
DDPCAPS_8BITENTRIES
)
{
int
i
;
const
BYTE
*
entry
=
(
const
BYTE
*
)
palent
;
...
...
@@ -157,7 +157,7 @@ Main_DirectDrawPalette_SetEntries(LPDIRECTDRAWPALETTE iface, DWORD dwFlags,
if
(
This
->
hpal
)
SetPaletteEntries
(
This
->
hpal
,
dwStart
,
dwCount
,
This
->
palents
+
dwStart
);
if
(
This
->
f
lags
&
DDPCAPS_PRIMARYSURFACE
)
{
if
(
This
->
global
.
dwF
lags
&
DDPCAPS_PRIMARYSURFACE
)
{
/* update physical palette */
LPDIRECTDRAWSURFACE7
psurf
=
NULL
;
IDirectDraw7_GetGDISurface
(
ICOM_INTERFACE
(
This
->
ddraw_owner
,
IDirectDraw7
),
&
psurf
);
...
...
@@ -241,7 +241,7 @@ Main_DirectDrawPalette_GetCaps(LPDIRECTDRAWPALETTE iface, LPDWORD lpdwCaps)
ICOM_THIS
(
IDirectDrawPaletteImpl
,
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
lpdwCaps
);
*
lpdwCaps
=
This
->
f
lags
;
*
lpdwCaps
=
This
->
global
.
dwF
lags
;
return
DD_OK
;
}
...
...
dlls/ddraw/dsurface/main.c
View file @
1d8f92c8
...
...
@@ -1062,7 +1062,7 @@ Main_DirectDrawSurface_SetPalette(LPDIRECTDRAWSURFACE7 iface,
if
(
This
->
palette
!=
NULL
)
{
if
(
This
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
This
->
palette
->
f
lags
&=
~
DDPCAPS_PRIMARYSURFACE
;
This
->
palette
->
global
.
dwF
lags
&=
~
DDPCAPS_PRIMARYSURFACE
;
IDirectDrawPalette_Release
(
ICOM_INTERFACE
(
This
->
palette
,
IDirectDrawPalette
));
}
...
...
@@ -1072,7 +1072,7 @@ Main_DirectDrawSurface_SetPalette(LPDIRECTDRAWSURFACE7 iface,
if
(
pPalette
!=
NULL
)
{
IDirectDrawPalette_AddRef
(
pPalette
);
if
(
This
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
This
->
palette
->
f
lags
|=
DDPCAPS_PRIMARYSURFACE
;
This
->
palette
->
global
.
dwF
lags
|=
DDPCAPS_PRIMARYSURFACE
;
}
This
->
set_palette
(
This
,
This
->
palette
);
...
...
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