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
fadc2cda
Commit
fadc2cda
authored
Dec 28, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Load the 32-bit gdi.exe module wrapper from the 32-bit side.
Get rid of the empty gdi_main.c file.
parent
9ceda483
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
42 deletions
+18
-42
gdi.c
dlls/gdi.exe16/gdi.c
+11
-0
Makefile.in
dlls/gdi32/Makefile.in
+0
-1
gdi_main.c
dlls/gdi32/gdi_main.c
+0
-38
gdi_private.h
dlls/gdi32/gdi_private.h
+0
-1
gdiobj.c
dlls/gdi32/gdiobj.c
+7
-2
No files found.
dlls/gdi.exe16/gdi.c
View file @
fadc2cda
...
...
@@ -428,6 +428,17 @@ static void free_segptr_bits( HBITMAP16 bmp )
}
}
/**********************************************************************
* DllMain
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserved
)
{
if
(
reason
==
DLL_PROCESS_ATTACH
)
LoadLibrary16
(
"gdi.exe"
);
return
TRUE
;
}
/***********************************************************************
* SetBkColor (GDI.1)
*/
...
...
dlls/gdi32/Makefile.in
View file @
fadc2cda
...
...
@@ -27,7 +27,6 @@ C_SRCS = \
enhmfdrv/objects.c
\
font.c
\
freetype.c
\
gdi_main.c
\
gdiobj.c
\
icm.c
\
mapping.c
\
...
...
dlls/gdi32/gdi_main.c
deleted
100644 → 0
View file @
9ceda483
/*
* GDI initialization code
*
* Copyright 2000 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "wine/winbase16.h"
#include "gdi_private.h"
/***********************************************************************
* GDI initialisation routine
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
reason
,
LPVOID
lpvReserved
)
{
if
(
reason
!=
DLL_PROCESS_ATTACH
)
return
TRUE
;
DisableThreadLibraryCalls
(
hinstDLL
);
LoadLibrary16
(
"gdi.exe"
);
return
GDI_Init
();
}
dlls/gdi32/gdi_private.h
View file @
fadc2cda
...
...
@@ -438,7 +438,6 @@ extern BOOL WineEngRealizationInfo(GdiFont*, realization_info_t*) DECLSPEC_HIDDE
extern
BOOL
WineEngRemoveFontResourceEx
(
LPCWSTR
,
DWORD
,
PVOID
)
DECLSPEC_HIDDEN
;
/* gdiobj.c */
extern
BOOL
GDI_Init
(
void
)
DECLSPEC_HIDDEN
;
extern
HGDIOBJ
alloc_gdi_handle
(
GDIOBJHDR
*
obj
,
WORD
type
,
const
struct
gdi_obj_funcs
*
funcs
)
DECLSPEC_HIDDEN
;
extern
void
*
free_gdi_handle
(
HGDIOBJ
handle
)
DECLSPEC_HIDDEN
;
extern
void
*
GDI_GetObjPtr
(
HGDIOBJ
,
WORD
)
DECLSPEC_HIDDEN
;
...
...
dlls/gdi32/gdiobj.c
View file @
fadc2cda
...
...
@@ -565,16 +565,21 @@ BOOL GDI_dec_ref_count( HGDIOBJ handle )
/***********************************************************************
*
GDI_Init
*
DllMain
*
* GDI initialization.
*/
BOOL
GDI_Init
(
void
)
BOOL
WINAPI
DllMain
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserved
)
{
LOGFONTW
default_gui_font
;
const
struct
DefaultFontInfo
*
deffonts
;
int
i
;
if
(
reason
!=
DLL_PROCESS_ATTACH
)
return
TRUE
;
DisableThreadLibraryCalls
(
inst
);
LoadLibraryA
(
"gdi.exe16"
);
WineEngInit
();
/* create stock objects */
...
...
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