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
d096d773
Commit
d096d773
authored
Apr 25, 1999
by
Karl Lessard
Committed by
Alexandre Julliard
Apr 25, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SetMapMode should not reset the window and viewport origins to 0.
parent
455414cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
mapping.c
graphics/mapping.c
+0
-12
No files found.
graphics/mapping.c
View file @
d096d773
...
@@ -130,8 +130,6 @@ INT WINAPI SetMapMode( HDC hdc, INT mode )
...
@@ -130,8 +130,6 @@ INT WINAPI SetMapMode( HDC hdc, INT mode )
switch
(
mode
)
switch
(
mode
)
{
{
case
MM_TEXT
:
case
MM_TEXT
:
dc
->
wndOrgX
=
dc
->
wndOrgY
=
0
;
dc
->
vportOrgX
=
dc
->
vportOrgY
=
0
;
dc
->
wndExtX
=
1
;
dc
->
wndExtX
=
1
;
dc
->
wndExtY
=
1
;
dc
->
wndExtY
=
1
;
dc
->
vportExtX
=
1
;
dc
->
vportExtX
=
1
;
...
@@ -140,8 +138,6 @@ INT WINAPI SetMapMode( HDC hdc, INT mode )
...
@@ -140,8 +138,6 @@ INT WINAPI SetMapMode( HDC hdc, INT mode )
case
MM_LOMETRIC
:
case
MM_LOMETRIC
:
case
MM_ISOTROPIC
:
case
MM_ISOTROPIC
:
dc
->
wndOrgX
=
dc
->
wndOrgY
=
0
;
dc
->
vportOrgX
=
dc
->
vportOrgY
=
0
;
dc
->
wndExtX
=
dc
->
w
.
devCaps
->
horzSize
;
dc
->
wndExtX
=
dc
->
w
.
devCaps
->
horzSize
;
dc
->
wndExtY
=
dc
->
w
.
devCaps
->
vertSize
;
dc
->
wndExtY
=
dc
->
w
.
devCaps
->
vertSize
;
dc
->
vportExtX
=
dc
->
w
.
devCaps
->
horzRes
/
10
;
dc
->
vportExtX
=
dc
->
w
.
devCaps
->
horzRes
/
10
;
...
@@ -149,8 +145,6 @@ INT WINAPI SetMapMode( HDC hdc, INT mode )
...
@@ -149,8 +145,6 @@ INT WINAPI SetMapMode( HDC hdc, INT mode )
break
;
break
;
case
MM_HIMETRIC
:
case
MM_HIMETRIC
:
dc
->
wndOrgX
=
dc
->
wndOrgY
=
0
;
dc
->
vportOrgX
=
dc
->
vportOrgY
=
0
;
dc
->
wndExtX
=
dc
->
w
.
devCaps
->
horzSize
*
10
;
dc
->
wndExtX
=
dc
->
w
.
devCaps
->
horzSize
*
10
;
dc
->
wndExtY
=
dc
->
w
.
devCaps
->
vertSize
*
10
;
dc
->
wndExtY
=
dc
->
w
.
devCaps
->
vertSize
*
10
;
dc
->
vportExtX
=
dc
->
w
.
devCaps
->
horzRes
/
10
;
dc
->
vportExtX
=
dc
->
w
.
devCaps
->
horzRes
/
10
;
...
@@ -158,8 +152,6 @@ INT WINAPI SetMapMode( HDC hdc, INT mode )
...
@@ -158,8 +152,6 @@ INT WINAPI SetMapMode( HDC hdc, INT mode )
break
;
break
;
case
MM_LOENGLISH
:
case
MM_LOENGLISH
:
dc
->
wndOrgX
=
dc
->
wndOrgY
=
0
;
dc
->
vportOrgX
=
dc
->
vportOrgY
=
0
;
dc
->
wndExtX
=
dc
->
w
.
devCaps
->
horzSize
;
dc
->
wndExtX
=
dc
->
w
.
devCaps
->
horzSize
;
dc
->
wndExtY
=
dc
->
w
.
devCaps
->
vertSize
;
dc
->
wndExtY
=
dc
->
w
.
devCaps
->
vertSize
;
dc
->
vportExtX
=
254L
*
dc
->
w
.
devCaps
->
horzRes
/
1000
;
dc
->
vportExtX
=
254L
*
dc
->
w
.
devCaps
->
horzRes
/
1000
;
...
@@ -167,8 +159,6 @@ INT WINAPI SetMapMode( HDC hdc, INT mode )
...
@@ -167,8 +159,6 @@ INT WINAPI SetMapMode( HDC hdc, INT mode )
break
;
break
;
case
MM_HIENGLISH
:
case
MM_HIENGLISH
:
dc
->
wndOrgX
=
dc
->
wndOrgY
=
0
;
dc
->
vportOrgX
=
dc
->
vportOrgY
=
0
;
dc
->
wndExtX
=
dc
->
w
.
devCaps
->
horzSize
*
10
;
dc
->
wndExtX
=
dc
->
w
.
devCaps
->
horzSize
*
10
;
dc
->
wndExtY
=
dc
->
w
.
devCaps
->
vertSize
*
10
;
dc
->
wndExtY
=
dc
->
w
.
devCaps
->
vertSize
*
10
;
dc
->
vportExtX
=
254L
*
dc
->
w
.
devCaps
->
horzRes
/
1000
;
dc
->
vportExtX
=
254L
*
dc
->
w
.
devCaps
->
horzRes
/
1000
;
...
@@ -176,8 +166,6 @@ INT WINAPI SetMapMode( HDC hdc, INT mode )
...
@@ -176,8 +166,6 @@ INT WINAPI SetMapMode( HDC hdc, INT mode )
break
;
break
;
case
MM_TWIPS
:
case
MM_TWIPS
:
dc
->
wndOrgX
=
dc
->
wndOrgY
=
0
;
dc
->
vportOrgX
=
dc
->
vportOrgY
=
0
;
dc
->
wndExtX
=
144L
*
dc
->
w
.
devCaps
->
horzSize
/
10
;
dc
->
wndExtX
=
144L
*
dc
->
w
.
devCaps
->
horzSize
/
10
;
dc
->
wndExtY
=
144L
*
dc
->
w
.
devCaps
->
vertSize
/
10
;
dc
->
wndExtY
=
144L
*
dc
->
w
.
devCaps
->
vertSize
/
10
;
dc
->
vportExtX
=
254L
*
dc
->
w
.
devCaps
->
horzRes
/
1000
;
dc
->
vportExtX
=
254L
*
dc
->
w
.
devCaps
->
horzRes
/
1000
;
...
...
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