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
f52ef006
Commit
f52ef006
authored
Aug 24, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Use proper pixel format when accessing dib memory directly.
parent
b9f05239
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
gdiinterop.c
dlls/dwrite/gdiinterop.c
+6
-0
No files found.
dlls/dwrite/gdiinterop.c
View file @
f52ef006
...
...
@@ -299,6 +299,11 @@ static void blit_subpixel_888(struct dib_data *dib, int dib_width, const BYTE *s
}
}
static
inline
DWORD
colorref_to_pixel_888
(
COLORREF
color
)
{
return
(((
color
>>
16
)
&
0xff
)
|
(
color
&
0xff00
)
|
((
color
<<
16
)
&
0xff0000
));
}
static
HRESULT
WINAPI
rendertarget_DrawGlyphRun
(
IDWriteBitmapRenderTarget1
*
iface
,
FLOAT
originX
,
FLOAT
originY
,
DWRITE_MEASURING_MODE
measuring_mode
,
DWRITE_GLYPH_RUN
const
*
run
,
IDWriteRenderingParams
*
params
,
COLORREF
color
,
...
...
@@ -412,6 +417,7 @@ static HRESULT WINAPI rendertarget_DrawGlyphRun(IDWriteBitmapRenderTarget1 *ifac
UINT32
size
=
(
target
.
right
-
target
.
left
)
*
(
target
.
bottom
-
target
.
top
);
BYTE
*
bitmap
;
color
=
colorref_to_pixel_888
(
color
);
if
(
texturetype
==
DWRITE_TEXTURE_CLEARTYPE_3x1
)
size
*=
3
;
bitmap
=
heap_alloc_zero
(
size
);
...
...
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