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
56c045c6
Commit
56c045c6
authored
Nov 03, 2015
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Define the 2D identity matrix once, at the top of the file.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
268070d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wgl.c
dlls/opengl32/wgl.c
+2
-2
No files found.
dlls/opengl32/wgl.c
View file @
56c045c6
...
...
@@ -92,6 +92,8 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
};
static
CRITICAL_SECTION
wgl_section
=
{
&
critsect_debug
,
-
1
,
0
,
0
,
0
,
0
};
static
const
MAT2
identity
=
{
{
0
,
1
},{
0
,
0
},{
0
,
0
},{
0
,
1
}
};
static
inline
struct
opengl_funcs
*
get_dc_funcs
(
HDC
hdc
)
{
struct
opengl_funcs
*
funcs
=
__wine_get_wgl_driver
(
hdc
,
WINE_WGL_DRIVER_VERSION
);
...
...
@@ -1212,7 +1214,6 @@ static BOOL wglUseFontBitmaps_common( HDC hdc, DWORD first, DWORD count, DWORD l
funcs
->
gl
.
p_glPixelStorei
(
GL_UNPACK_ALIGNMENT
,
4
);
for
(
glyph
=
first
;
glyph
<
first
+
count
;
glyph
++
)
{
static
const
MAT2
identity
=
{
{
0
,
1
},{
0
,
0
},{
0
,
0
},{
0
,
1
}
};
unsigned
int
needed_size
,
height
,
width
,
width_int
;
if
(
unicode
)
...
...
@@ -1479,7 +1480,6 @@ static BOOL wglUseFontOutlines_common(HDC hdc,
{
const
struct
opengl_funcs
*
funcs
=
NtCurrentTeb
()
->
glTable
;
UINT
glyph
;
const
MAT2
identity
=
{{
0
,
1
},{
0
,
0
},{
0
,
0
},{
0
,
1
}};
GLUtesselator
*
tess
=
NULL
;
LOGFONTW
lf
;
HFONT
old_font
,
unscaled_font
;
...
...
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