source: branches/swt/src/gdiplus/gdiplus.cpp@ 22122

Last change on this file since 22122 was 22122, checked in by rousseau, 10 years ago

Correct Copyright Attributions [gdiplus]

Odin is drinking Wine so we have major contributors to credit from both
projects. Since this is a public repo the proper way seems to be to
merge the headers kinda like this. Details will be addressed in a later
stage if needed.

File size: 2.8 KB
Line 
1/* $Id: gdiplus.cpp,v 1.94 2016-02-09 10:00:00 rousseau Exp $ */
2
3/*
4 * GDIPLUS apis
5 *
6 * Copyright (C) 2007 Google (Evan Stade)
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 *
22 * Portions Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
23 * Portions Copyright 1998 Patrick Haller
24 *
25 * Project Odin Software License can be found in LICENSE.TXT
26 *
27 */
28
29#include <os2win.h>
30#include <stdlib.h>
31#include <stdarg.h>
32#include <string.h>
33#include <odinwrap.h>
34#include <debugtools.h>
35#include <misc.h>
36#include "unicode.h"
37#include <codepage.h>
38#include <dcdata.h>
39#include <winuser32.h>
40#include <stats.h>
41#include <objhandle.h>
42#include <winspool.h>
43
44#include <shlwapi.h>
45
46// rousseau.201602140232
47// In 'initguid.h' we made the GUID in macro 'DEFINE_GUID' static to work
48// around duplicate defined GUIDs when building 'swt.dll'. (Rev:22089)
49// Since 'DEFINE_GUID' is also defined in 'guiddef.h', we will use that
50// (non-static) version here. See 'comtype.h' for some more info.
51// TODO: Investigate duplicate ID's in 'swt.dll'.
52// Have one definition of 'DEFINE_GUID' ?
53///#include <initguid.h>
54#include <guiddef.h>
55
56#include <gdiplus.h>
57
58#define DBG_LOCALLOG DBG_gdiplus
59#include "dbglocal.h"
60
61ODINDEBUGCHANNEL(GDIPLUS-GDIPLUS)
62
63void* WINGDIPAPI GdipAlloc(SIZE_T size)
64{
65 return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size);
66}
67
68void WINGDIPAPI GdipFree(void* ptr)
69{
70 HeapFree(GetProcessHeap(), 0, ptr);
71}
72
73void WINAPI GdiplusShutdown(ULONG_PTR token)
74{
75 /* FIXME: no object tracking */
76}
77
78Status WINAPI GdiplusStartup(ULONG_PTR *token, const struct GdiplusStartupInput *input,
79 struct GdiplusStartupOutput *output)
80{
81 if(!token)
82 return InvalidParameter;
83
84 if(input->GdiplusVersion != 1) {
85 return UnsupportedGdiplusVersion;
86 } else if ((input->DebugEventCallback) ||
87 (input->SuppressBackgroundThread) || (input->SuppressExternalCodecs)){
88 FIXME("Unimplemented for non-default GdiplusStartupInput");
89 return NotImplemented;
90 } else if(output) {
91 FIXME("Unimplemented for non-null GdiplusStartupOutput");
92 return NotImplemented;
93 }
94
95 return Ok;
96}
Note: See TracBrowser for help on using the repository browser.