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
a781bbf0
Commit
a781bbf0
authored
Jun 08, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jun 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added beginnings of memory and startup functions.
parent
48f10d4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
5 deletions
+41
-5
gdiplus.c
dlls/gdiplus/gdiplus.c
+37
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+4
-4
No files found.
dlls/gdiplus/gdiplus.c
View file @
a781bbf0
/*
/*
* Copyright (C) 2007
Evan Stade
* Copyright (C) 2007
Google (Evan Stade)
*
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Lesser General Public
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include "winbase.h"
#include "winbase.h"
#include "winerror.h"
#include "winerror.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "gdiplus.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
gdiplus
);
WINE_DEFAULT_DEBUG_CHANNEL
(
gdiplus
);
...
@@ -43,3 +44,38 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
...
@@ -43,3 +44,38 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
}
}
return
TRUE
;
return
TRUE
;
}
}
Status
WINAPI
GdiplusStartup
(
ULONG_PTR
*
token
,
const
struct
GdiplusStartupInput
*
input
,
struct
GdiplusStartupOutput
*
output
)
{
if
(
!
token
)
return
InvalidParameter
;
if
(
input
->
GdiplusVersion
!=
1
)
{
return
UnsupportedGdiplusVersion
;
}
else
if
((
input
->
DebugEventCallback
)
||
(
input
->
SuppressBackgroundThread
)
||
(
input
->
SuppressExternalCodecs
)){
FIXME
(
"Unimplemented for non-default GdiplusStartupInput"
);
return
NotImplemented
;
}
else
if
(
output
)
{
FIXME
(
"Unimplemented for non-null GdiplusStartupOutput"
);
return
NotImplemented
;
}
return
Ok
;
}
void
WINAPI
GdiplusShutdown
(
ULONG_PTR
token
)
{
/* FIXME: no object tracking */
}
void
*
WINGDIPAPI
GdipAlloc
(
SIZE_T
size
)
{
return
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
size
);
}
void
WINGDIPAPI
GdipFree
(
void
*
ptr
)
{
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
}
dlls/gdiplus/gdiplus.spec
View file @
a781bbf0
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
@ stub GdipAddPathRectanglesI
@ stub GdipAddPathRectanglesI
@ stub GdipAddPathString
@ stub GdipAddPathString
@ stub GdipAddPathStringI
@ stub GdipAddPathStringI
@ st
ub GdipAlloc
@ st
dcall GdipAlloc(long)
@ stub GdipBeginContainer2
@ stub GdipBeginContainer2
@ stub GdipBeginContainer
@ stub GdipBeginContainer
@ stub GdipBeginContainerI
@ stub GdipBeginContainerI
...
@@ -222,7 +222,7 @@
...
@@ -222,7 +222,7 @@
@ stub GdipFillRegion
@ stub GdipFillRegion
@ stub GdipFlattenPath
@ stub GdipFlattenPath
@ stub GdipFlush
@ stub GdipFlush
@ st
ub GdipFree
@ st
dcall GdipFree(ptr)
@ stub GdipGetAdjustableArrowCapFillState
@ stub GdipGetAdjustableArrowCapFillState
@ stub GdipGetAdjustableArrowCapHeight
@ stub GdipGetAdjustableArrowCapHeight
@ stub GdipGetAdjustableArrowCapMiddleInset
@ stub GdipGetAdjustableArrowCapMiddleInset
...
@@ -605,5 +605,5 @@
...
@@ -605,5 +605,5 @@
@ stub GdipWindingModeOutline
@ stub GdipWindingModeOutline
@ stub GdiplusNotificationHook
@ stub GdiplusNotificationHook
@ stub GdiplusNotificationUnhook
@ stub GdiplusNotificationUnhook
@ st
ub GdiplusShutdown
@ st
dcall GdiplusShutdown(ptr)
@ st
ub GdiplusStartup
@ st
dcall GdiplusStartup(ptr ptr ptr)
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