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
9005a21f
Commit
9005a21f
authored
Mar 05, 2001
by
Ian Pilcher
Committed by
Alexandre Julliard
Mar 05, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't load the WINEPS driver until it's needed.
parent
fbc3619c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
gdi_main.c
dlls/gdi/gdi_main.c
+0
-3
driver.c
graphics/driver.c
+14
-6
No files found.
dlls/gdi/gdi_main.c
View file @
9005a21f
...
...
@@ -24,9 +24,6 @@ BOOL WINAPI MAIN_GdiInit(HINSTANCE hinstDLL, DWORD reason, LPVOID lpvReserved)
/* Create the Win16 printer driver */
if
(
!
WIN16DRV_Init
())
return
FALSE
;
/* PSDRV initialization */
if
(
!
LoadLibraryA
(
"wineps"
))
return
FALSE
;
return
TRUE
;
}
...
...
graphics/driver.c
View file @
9005a21f
...
...
@@ -54,15 +54,23 @@ BOOL DRIVER_RegisterDriver( LPCSTR name, const DC_FUNCTIONS *funcs )
*/
const
DC_FUNCTIONS
*
DRIVER_FindDriver
(
LPCSTR
name
)
{
GRAPHICS_DRIVER
*
driver
=
firstDriver
;
GRAPHICS_DRIVER
*
driver
;
HINSTANCE
hDriver
;
TRACE
(
": %s
\n
"
,
name
);
while
(
driver
&&
name
)
{
if
(
!
name
)
return
genericDriver
?
genericDriver
->
funcs
:
NULL
;
for
(
driver
=
firstDriver
;
driver
;
driver
=
driver
->
next
)
if
(
!
strcasecmp
(
driver
->
name
,
name
))
return
driver
->
funcs
;
driver
=
driver
->
next
;
}
return
genericDriver
?
genericDriver
->
funcs
:
NULL
;
if
(
!
(
hDriver
=
LoadLibraryA
(
name
)))
return
NULL
;
for
(
driver
=
firstDriver
;
driver
;
driver
=
driver
->
next
)
if
(
!
strcasecmp
(
driver
->
name
,
name
))
return
driver
->
funcs
;
FreeLibrary
(
hDriver
);
return
NULL
;
}
...
...
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