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
9d0abdbc
Commit
9d0abdbc
authored
May 18, 2000
by
Ove Kaaven
Committed by
Alexandre Julliard
May 18, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize an identity mapping in CreatePalette if no depth conversion
is necessary. Also fixed a warning.
parent
d3e7e214
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
main.c
dlls/ddraw/ddraw/main.c
+6
-0
main.c
dlls/ddraw/main.c
+1
-1
No files found.
dlls/ddraw/ddraw/main.c
View file @
9d0abdbc
...
...
@@ -192,6 +192,12 @@ HRESULT WINAPI common_IDirectDraw2Impl_CreatePalette(
ERR
(
"unhandled palette format
\n
"
);
*
psize
=
size
;
if
(
This
->
d
.
palette_convert
==
NULL
)
{
/* No depth conversion - create 8<->8 identity map */
int
ent
;
for
(
ent
=
0
;
ent
<
256
;
ent
++
)
(
*
lpddpal
)
->
screen_palents
[
ent
]
=
ent
;
}
if
(
palent
)
{
/* Now, if we are in depth conversion mode, create the screen palette */
if
(
This
->
d
.
palette_convert
!=
NULL
)
...
...
dlls/ddraw/main.c
View file @
9d0abdbc
...
...
@@ -330,7 +330,7 @@ HRESULT WINAPI DirectDrawCreateEx(
)
{
FIXME
(
":semi stub
\n
"
);
/* I don't know about what functionality is unique to Ex */
return
DirectDrawCreate
(
lpGUID
,(
LPDIRECTDRAW
)
lplpDD
,
pUnkOuter
);
return
DirectDrawCreate
(
lpGUID
,(
LPDIRECTDRAW
*
)
lplpDD
,
pUnkOuter
);
}
/*******************************************************************************
...
...
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