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
952dfe30
Commit
952dfe30
authored
Sep 05, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Translate before scaling for rhw as well in transform_projection().
parent
8e0cb60b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
state.c
dlls/wined3d/state.c
+7
-5
No files found.
dlls/wined3d/state.c
View file @
952dfe30
...
@@ -3905,10 +3905,6 @@ static void transform_projection(DWORD state, IWineD3DStateBlockImpl *stateblock
...
@@ -3905,10 +3905,6 @@ static void transform_projection(DWORD state, IWineD3DStateBlockImpl *stateblock
glOrtho
(
x
,
x
+
w
,
y
+
h
,
y
,
0
.
0
,
-
1
.
0
);
glOrtho
(
x
,
x
+
w
,
y
+
h
,
y
,
0
.
0
,
-
1
.
0
);
checkGLcall
(
"glOrtho"
);
checkGLcall
(
"glOrtho"
);
/* Window Coord 0 is the middle of the first pixel, so translate by 1/2 pixels */
glTranslatef
(
63
.
0
f
/
128
.
0
f
,
63
.
0
f
/
128
.
0
f
,
0
.
0
f
);
checkGLcall
(
"glTranslatef(63.0f / 128.0f, 63.0f / 128.0f, 0.0f)"
);
/* D3D texture coordinates are flipped compared to OpenGL ones, so
/* D3D texture coordinates are flipped compared to OpenGL ones, so
* render everything upside down when rendering offscreen. */
* render everything upside down when rendering offscreen. */
if
(
context
->
render_offscreen
)
if
(
context
->
render_offscreen
)
...
@@ -3916,7 +3912,13 @@ static void transform_projection(DWORD state, IWineD3DStateBlockImpl *stateblock
...
@@ -3916,7 +3912,13 @@ static void transform_projection(DWORD state, IWineD3DStateBlockImpl *stateblock
glScalef
(
1
.
0
f
,
-
1
.
0
f
,
1
.
0
f
);
glScalef
(
1
.
0
f
,
-
1
.
0
f
,
1
.
0
f
);
checkGLcall
(
"glScalef"
);
checkGLcall
(
"glScalef"
);
}
}
}
else
{
/* Window Coord 0 is the middle of the first pixel, so translate by 1/2 pixels */
glTranslatef
(
63
.
0
f
/
128
.
0
f
,
63
.
0
f
/
128
.
0
f
,
0
.
0
f
);
checkGLcall
(
"glTranslatef(63.0f / 128.0f, -63.0f / 128.0f, 0.0f)"
);
}
else
{
/* The rule is that the window coordinate 0 does not correspond to the
/* The rule is that the window coordinate 0 does not correspond to the
beginning of the first pixel, but the center of the first pixel.
beginning of the first pixel, but the center of the first pixel.
As a consequence if you want to correctly draw one line exactly from
As a consequence if you want to correctly draw one line exactly from
...
...
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