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
1e360ebb
Commit
1e360ebb
authored
Nov 22, 1998
by
Andreas Mohr
Committed by
Alexandre Julliard
Nov 22, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Win16 implementation for GetRegionData().
parent
29bbe122
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
9 deletions
+20
-9
prtdrv.c
graphics/win16drv/prtdrv.c
+2
-2
gdi.spec
if1632/gdi.spec
+1
-1
windows.h
include/windows.h
+3
-1
metafile.c
objects/metafile.c
+2
-2
region.c
objects/region.c
+11
-2
gdi32.spec
relay32/gdi32.spec
+1
-1
No files found.
graphics/win16drv/prtdrv.c
View file @
1e360ebb
...
...
@@ -391,14 +391,14 @@ WORD PRTDRV_Output(LPPDEVICE lpDestDev,
DWORD
size
;
RGNDATA
*
clip
;
size
=
GetRegionData
(
hClipRgn
,
0
,
NULL
);
size
=
GetRegionData
32
(
hClipRgn
,
0
,
NULL
);
clip
=
HeapAlloc
(
SystemHeap
,
0
,
size
);
if
(
!
clip
)
{
WARN
(
win16drv
,
"Can't alloc clip array in PRTDRV_Output
\n
"
);
return
FALSE
;
}
GetRegionData
(
hClipRgn
,
size
,
clip
);
GetRegionData
32
(
hClipRgn
,
size
,
clip
);
if
(
clip
->
rdh
.
nCount
==
0
)
{
wRet
=
Callbacks
->
CallDrvOutputProc
(
pLPD
->
fn
[
FUNC_OUTPUT
],
...
...
if1632/gdi.spec
View file @
1e360ebb
...
...
@@ -376,7 +376,7 @@ file gdi.exe
604 pascal16 SetSolidBrush(word long) SetSolidBrush16
605 pascal16 SysDeleteObject(word) DeleteObject16 # ???
606 pascal16 SetMagicColors(word long word) SetMagicColors16
607
stub GetRegionData
607
pascal GetRegionData(word long ptr) GetRegionData16
608 stub ExtCreateRegion
609 stub GDIFreeResources
610 stub GDISignalProc32
...
...
include/windows.h
View file @
1e360ebb
...
...
@@ -6872,7 +6872,6 @@ DWORD WINAPI GetObjectType(HANDLE32);
UINT32
WINAPI
GetOEMCP
(
void
);
DWORD
WINAPI
GetPriorityClass
(
HANDLE32
);
HANDLE32
WINAPI
GetProcessHeap
(
void
);
DWORD
WINAPI
GetRegionData
(
HRGN32
,
DWORD
,
LPRGNDATA
);
DWORD
WINAPI
GetShortPathName32A
(
LPCSTR
,
LPSTR
,
DWORD
);
DWORD
WINAPI
GetShortPathName32W
(
LPCWSTR
,
LPWSTR
,
DWORD
);
#define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
...
...
@@ -8238,6 +8237,9 @@ DWORD WINAPI GetQueueStatus32(UINT32);
BOOL16
WINAPI
GetRasterizerCaps16
(
LPRASTERIZER_STATUS
,
UINT16
);
BOOL32
WINAPI
GetRasterizerCaps32
(
LPRASTERIZER_STATUS
,
UINT32
);
#define GetRasterizerCaps WINELIB_NAME(GetRasterizerCaps)
DWORD
WINAPI
GetRegionData16
(
HRGN16
,
DWORD
,
LPRGNDATA
);
DWORD
WINAPI
GetRegionData32
(
HRGN32
,
DWORD
,
LPRGNDATA
);
#define GetRegionData WINELIB_NAME(GetRegionData)
INT16
WINAPI
GetRelAbs16
(
HDC16
);
INT32
WINAPI
GetRelAbs32
(
HDC32
);
#define GetRelAbs WINELIB_NAME(GetRelAbs)
...
...
objects/metafile.c
View file @
1e360ebb
...
...
@@ -1684,12 +1684,12 @@ INT16 MF_CreateRegion(DC *dc, HRGN32 hrgn)
WORD
*
Param
,
*
StartBand
;
BOOL32
ret
;
len
=
GetRegionData
(
hrgn
,
0
,
NULL
);
len
=
GetRegionData
32
(
hrgn
,
0
,
NULL
);
if
(
!
(
rgndata
=
HeapAlloc
(
SystemHeap
,
0
,
len
))
)
{
WARN
(
metafile
,
"MF_CreateRegion: can't alloc rgndata buffer
\n
"
);
return
-
1
;
}
GetRegionData
(
hrgn
,
len
,
rgndata
);
GetRegionData
32
(
hrgn
,
len
,
rgndata
);
/* Overestimate of length:
* Assume every rect is a separate band -> 6 WORDs per rect
...
...
objects/region.c
View file @
1e360ebb
...
...
@@ -521,10 +521,10 @@ HRGN32 WINAPI CreateEllipticRgnIndirect32( const RECT32 *rect )
}
/***********************************************************************
* GetRegionData (GDI32.217)
* GetRegionData
32
(GDI32.217)
*
*/
DWORD
WINAPI
GetRegionData
(
HRGN32
hrgn
,
DWORD
count
,
LPRGNDATA
rgndata
)
DWORD
WINAPI
GetRegionData
32
(
HRGN32
hrgn
,
DWORD
count
,
LPRGNDATA
rgndata
)
{
DWORD
size
;
RGNOBJ
*
obj
=
(
RGNOBJ
*
)
GDI_GetObjPtr
(
hrgn
,
REGION_MAGIC
);
...
...
@@ -557,6 +557,15 @@ DWORD WINAPI GetRegionData(HRGN32 hrgn, DWORD count, LPRGNDATA rgndata)
}
/***********************************************************************
* GetRegionData16 (GDI.607)
* FIXME: is LPRGNDATA the same in Win16 and Win32 ?
*/
DWORD
WINAPI
GetRegionData16
(
HRGN16
hrgn
,
DWORD
count
,
LPRGNDATA
rgndata
)
{
return
GetRegionData32
((
HRGN32
)
hrgn
,
count
,
rgndata
);
}
/***********************************************************************
* ExtCreateRegion (GDI32.94)
*
*/
...
...
relay32/gdi32.spec
View file @
1e360ebb
...
...
@@ -219,7 +219,7 @@ init MAIN_GdiInit
214 stdcall GetROP2(long) GetROP232
215 stdcall GetRandomRgn(long long long) GetRandomRgn
216 stdcall GetRasterizerCaps(ptr long) GetRasterizerCaps32
217 stdcall GetRegionData(long long ptr) GetRegionData
217 stdcall GetRegionData(long long ptr) GetRegionData
32
218 stdcall GetRelAbs(long) GetRelAbs32
219 stdcall GetRgnBox(long ptr) GetRgnBox32
220 stdcall GetStockObject(long) GetStockObject32
...
...
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