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
d89080c6
Commit
d89080c6
authored
May 09, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Update the device palette if the primary palette is changed.
parent
275a0c2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
palette.c
dlls/wined3d/palette.c
+11
-0
No files found.
dlls/wined3d/palette.c
View file @
d89080c6
...
@@ -142,6 +142,17 @@ HRESULT WINAPI IWineD3DPaletteImpl_SetEntries(IWineD3DPalette *iface, DWORD Flag
...
@@ -142,6 +142,17 @@ HRESULT WINAPI IWineD3DPaletteImpl_SetEntries(IWineD3DPalette *iface, DWORD Flag
}
}
}
}
/* If the palette is the primary palette, set the entries to the device */
if
(
This
->
Flags
&
DDPCAPS_PRIMARYSURFACE
)
{
unsigned
int
i
;
IWineD3DDeviceImpl
*
device
=
This
->
wineD3DDevice
;
PALETTEENTRY
*
entry
=
PalEnt
;
for
(
i
=
Start
;
i
<
Start
+
Count
;
i
++
)
{
device
->
palettes
[
device
->
currentPalette
][
i
]
=
*
entry
++
;
}
}
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
...
...
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