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
980992a3
Commit
980992a3
authored
Nov 14, 1998
by
Huw D M Davies
Committed by
Alexandre Julliard
Nov 14, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Should get win16drv AbortProc working. Hopefully.
parent
8bf078bf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
7 deletions
+17
-7
init.c
graphics/win16drv/init.c
+12
-5
thunk.c
if1632/thunk.c
+2
-1
callback.h
include/callback.h
+1
-0
callback.c
misc/callback.c
+2
-1
No files found.
graphics/win16drv/init.c
View file @
980992a3
...
...
@@ -288,15 +288,22 @@ static INT32 WIN16DRV_Escape( DC *dc, INT32 nEscape, INT32 cbInput,
FIXME
(
win16drv
,
"Escape: GETPAIRKERNTABLE ignored.
\n
"
);
nRet
=
0
;
break
;
case
SETABORTPROC
:
case
SETABORTPROC
:
{
/* FIXME: The AbortProc should be called:
- After every write to printer port or spool file
- Several times when no more disk space
- Before every metafile record when GDI does banding
*/
/* dc->w.lpfnPrint = (FARPROC16)lpInData; FIXME! */
nRet
=
1
;
/* save the callback address and call Control with hdc as lpInData */
HDC16
*
seghdc
=
SEGPTR_NEW
(
HDC16
);
*
seghdc
=
dc
->
hSelf
;
dc
->
w
.
lpfnPrint
=
(
FARPROC16
)
lpInData
;
nRet
=
PRTDRV_Control
(
physDev
->
segptrPDEVICE
,
nEscape
,
SEGPTR_GET
(
seghdc
),
lpOutData
);
SEGPTR_FREE
(
seghdc
);
break
;
}
case
NEXTBAND
:
{
...
...
@@ -364,7 +371,7 @@ BOOL16 WINAPI QueryAbort(HDC16 hdc, INT16 reserved)
if
((
!
dc
)
||
(
!
dc
->
w
.
lpfnPrint
))
return
TRUE
;
return
dc
->
w
.
lpfnPrint
(
hdc
,
0
);
return
Callbacks
->
CallDrvAbortProc
(
dc
->
w
.
lpfnPrint
,
hdc
,
0
);
}
/**********************************************************************
...
...
@@ -661,7 +668,7 @@ int WINAPI WriteSpool(HANDLE16 hJob, LPSTR lpData, WORD cch)
else
nRet
=
cch
;
if
(
pPrintJob
->
hDC
==
0
)
{
ERR
(
print
,
"hDC == 0 !
\n
"
);
TRACE
(
print
,
"hDC == 0 so no QueryAbort
\n
"
);
}
else
if
(
!
(
QueryAbort
(
pPrintJob
->
hDC
,
(
nRet
==
SP_OUTOFDISK
)
?
nRet
:
0
)))
{
...
...
if1632/thunk.c
View file @
980992a3
...
...
@@ -168,7 +168,8 @@ static const CALLBACKS_TABLE CALLBACK_EmulatorTable =
(
void
*
)
CallTo16_long_lwlll
,
/* CallDrvRealizeProc */
(
void
*
)
CallTo16_word_lwwwwlwwwwllll
,
/* CallDrvStretchBltProc */
(
void
*
)
CallTo16_long_lwwllwlllllw
,
/* CallDrvExtTextOutProc */
(
void
*
)
CallTo16_word_llwwlll
/* CallDrvGetCharWidth */
(
void
*
)
CallTo16_word_llwwlll
,
/* CallDrvGetCharWidth */
(
void
*
)
CallTo16_word_ww
/* CallDrvAbortProc */
};
...
...
include/callback.h
View file @
980992a3
...
...
@@ -65,6 +65,7 @@ typedef struct
WORD
);
WORD
(
CALLBACK
*
CallDrvGetCharWidthProc
)(
FARPROC16
,
SEGPTR
,
SEGPTR
,
WORD
,
WORD
,
SEGPTR
,
SEGPTR
,
SEGPTR
);
BOOL16
(
CALLBACK
*
CallDrvAbortProc
)(
FARPROC16
,
HDC16
,
INT16
);
}
CALLBACKS_TABLE
;
extern
const
CALLBACKS_TABLE
*
Callbacks
;
...
...
misc/callback.c
View file @
980992a3
...
...
@@ -276,7 +276,8 @@ static const CALLBACKS_TABLE CALLBACK_WinelibTable =
NULL
,
/* CallDrvRealizeProc */
NULL
,
/* CallDrvStretchBltProc */
NULL
,
/* CallDrvExtTextOutProc */
NULL
/* CallDrvGetCharWidth */
NULL
,
/* CallDrvGetCharWidth */
NULL
/* CallDrvAbortProc */
};
const
CALLBACKS_TABLE
*
Callbacks
=
&
CALLBACK_WinelibTable
;
...
...
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