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
b138c36c
Commit
b138c36c
authored
Oct 01, 2013
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Oct 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix empty glyph handling in the dib driver.
parent
24e0e4d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
graphics.c
dlls/gdi32/dibdrv/graphics.c
+2
-1
No files found.
dlls/gdi32/dibdrv/graphics.c
View file @
b138c36c
...
@@ -694,13 +694,14 @@ static struct cached_glyph *cache_glyph_bitmap( HDC hdc, struct cached_font *fon
...
@@ -694,13 +694,14 @@ static struct cached_glyph *cache_glyph_bitmap( HDC hdc, struct cached_font *fon
if
(
ret
!=
GDI_ERROR
)
break
;
if
(
ret
!=
GDI_ERROR
)
break
;
}
}
if
(
ret
==
GDI_ERROR
)
return
NULL
;
if
(
ret
==
GDI_ERROR
)
return
NULL
;
if
(
!
ret
)
metrics
.
gmBlackBoxX
=
metrics
.
gmBlackBoxY
=
0
;
/* empty glyph */
bit_count
=
get_glyph_depth
(
font
->
aa_flags
);
bit_count
=
get_glyph_depth
(
font
->
aa_flags
);
stride
=
get_dib_stride
(
metrics
.
gmBlackBoxX
,
bit_count
);
stride
=
get_dib_stride
(
metrics
.
gmBlackBoxX
,
bit_count
);
size
=
metrics
.
gmBlackBoxY
*
stride
;
size
=
metrics
.
gmBlackBoxY
*
stride
;
glyph
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
struct
cached_glyph
,
bits
[
size
]
));
glyph
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
struct
cached_glyph
,
bits
[
size
]
));
if
(
!
glyph
)
return
NULL
;
if
(
!
glyph
)
return
NULL
;
if
(
!
ret
)
goto
done
;
/* zero-size
glyph */
if
(
!
size
)
goto
done
;
/* empty
glyph */
if
(
bit_count
==
8
)
pad
=
padding
[
metrics
.
gmBlackBoxX
%
4
];
if
(
bit_count
==
8
)
pad
=
padding
[
metrics
.
gmBlackBoxX
%
4
];
...
...
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