comparison dwt/internal/gdip/native.d @ 332:1ee938a6e02e

Tango updates, removing trace prints and added prints via Logger
author Frank Benoit <benoit@tionex.de>
date Sun, 01 Feb 2009 19:40:09 +0100
parents 41a9fce66f7f
children
comparison
equal deleted inserted replaced
331:27479f54069d 332:1ee938a6e02e
12 12
13 module dwt.internal.gdip.native; 13 module dwt.internal.gdip.native;
14 14
15 import dwt.internal.win32.WINTYPES; 15 import dwt.internal.win32.WINTYPES;
16 import tango.sys.SharedLib : SharedLib; 16 import tango.sys.SharedLib : SharedLib;
17 import tango.util.log.Trace; 17 import dwt.dwthelper.utils;
18 18
19 extern(Windows): 19 extern(Windows):
20 20
21 /****************************************************************************** 21 /******************************************************************************
22 22
1679 void loadLib_Gdip(){ 1679 void loadLib_Gdip(){
1680 if (auto lib = SharedLib.load(`gdiplus.dll`)) { 1680 if (auto lib = SharedLib.load(`gdiplus.dll`)) {
1681 foreach( inout s; symbols ){ 1681 foreach( inout s; symbols ){
1682 *s.symbol = lib.getSymbol( s.name.ptr ); 1682 *s.symbol = lib.getSymbol( s.name.ptr );
1683 if( s.symbol is null ){ 1683 if( s.symbol is null ){
1684 Trace.formatln("gdiplus.dll: Symbol '{}' not found", s.name ); 1684 getDwtLogger.error("gdiplus.dll: Symbol '{}' not found", s.name );
1685 } 1685 }
1686 } 1686 }
1687 } else { 1687 } else {
1688 Trace.formatln("Could not load the library gdiplus.dll"); 1688 getDwtLogger.error("Could not load the library gdiplus.dll");
1689 } 1689 }
1690 } 1690 }
1691 1691
1692 } 1692 }
1693 1693