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
09aa6acc
Commit
09aa6acc
authored
Mar 08, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the D3DCOLOR_[RGBA] macros.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
357e7b75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
wined3d_private.h
dlls/wined3d/wined3d_private.h
+4
-9
No files found.
dlls/wined3d/wined3d_private.h
View file @
09aa6acc
...
...
@@ -989,16 +989,11 @@ extern const struct wined3d_shader_backend_ops none_shader_backend DECLSPEC_HIDD
#define D3DCOLOR_B_B(dw) (((dw) >> 0) & 0xff)
#define D3DCOLOR_B_A(dw) (((dw) >> 24) & 0xff)
#define D3DCOLOR_R(dw) (((float) (((dw) >> 16) & 0xff)) / 255.0f)
#define D3DCOLOR_G(dw) (((float) (((dw) >> 8) & 0xff)) / 255.0f)
#define D3DCOLOR_B(dw) (((float) (((dw) >> 0) & 0xff)) / 255.0f)
#define D3DCOLOR_A(dw) (((float) (((dw) >> 24) & 0xff)) / 255.0f)
#define D3DCOLORTOGLFLOAT4(dw, vec) do { \
(vec)[0] = D3DCOLOR_
R(dw)
; \
(vec)[1] = D3DCOLOR_
G(dw)
; \
(vec)[2] = D3DCOLOR_B
(dw)
; \
(vec)[3] = D3DCOLOR_
A(dw)
; \
(vec)[0] = D3DCOLOR_
B_R(dw) / 255.0f
; \
(vec)[1] = D3DCOLOR_
B_G(dw) / 255.0f
; \
(vec)[2] = D3DCOLOR_B
_B(dw) / 255.0f
; \
(vec)[3] = D3DCOLOR_
B_A(dw) / 255.0f
; \
} while(0)
#define HIGHEST_TRANSFORMSTATE WINED3D_TS_WORLD_MATRIX(255)
/* Highest value in wined3d_transform_state. */
...
...
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