XaDrwOld.cpp

Go to the documentation of this file.
00001 // $Id: XaDrwOld.cpp 882 2006-04-25 15:40:57Z gavin $
00002 /* @@tag:xara-cn@@ DO NOT MODIFY THIS LINE
00003 ================================XARAHEADERSTART===========================
00004  
00005                Xara LX, a vector drawing and manipulation program.
00006                     Copyright (C) 1993-2006 Xara Group Ltd.
00007        Copyright on certain contributions may be held in joint with their
00008               respective authors. See AUTHORS file for details.
00009 
00010 LICENSE TO USE AND MODIFY SOFTWARE
00011 ----------------------------------
00012 
00013 This file is part of Xara LX.
00014 
00015 Xara LX is free software; you can redistribute it and/or modify it
00016 under the terms of the GNU General Public License version 2 as published
00017 by the Free Software Foundation.
00018 
00019 Xara LX and its component source files are distributed in the hope
00020 that it will be useful, but WITHOUT ANY WARRANTY; without even the
00021 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00022 See the GNU General Public License for more details.
00023 
00024 You should have received a copy of the GNU General Public License along
00025 with Xara LX (see the file GPL in the root directory of the
00026 distribution); if not, write to the Free Software Foundation, Inc., 51
00027 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00028 
00029 
00030 ADDITIONAL RIGHTS
00031 -----------------
00032 
00033 Conditional upon your continuing compliance with the GNU General Public
00034 License described above, Xara Group Ltd grants to you certain additional
00035 rights. 
00036 
00037 The additional rights are to use, modify, and distribute the software
00038 together with the wxWidgets library, the wxXtra library, and the "CDraw"
00039 library and any other such library that any version of Xara LX relased
00040 by Xara Group Ltd requires in order to compile and execute, including
00041 the static linking of that library to XaraLX. In the case of the
00042 "CDraw" library, you may satisfy obligation under the GNU General Public
00043 License to provide source code by providing a binary copy of the library
00044 concerned and a copy of the license accompanying it.
00045 
00046 Nothing in this section restricts any of the rights you have under
00047 the GNU General Public License.
00048 
00049 
00050 SCOPE OF LICENSE
00051 ----------------
00052 
00053 This license applies to this program (XaraLX) and its constituent source
00054 files only, and does not necessarily apply to other Xara products which may
00055 in part share the same code base, and are subject to their own licensing
00056 terms.
00057 
00058 This license does not apply to files in the wxXtra directory, which
00059 are built into a separate library, and are subject to the wxWindows
00060 license contained within that directory in the file "WXXTRA-LICENSE".
00061 
00062 This license does not apply to the binary libraries (if any) within
00063 the "libs" directory, which are subject to a separate license contained
00064 within that directory in the file "LIBS-LICENSE".
00065 
00066 
00067 ARRANGEMENTS FOR CONTRIBUTION OF MODIFICATIONS
00068 ----------------------------------------------
00069 
00070 Subject to the terms of the GNU Public License (see above), you are
00071 free to do whatever you like with your modifications. However, you may
00072 (at your option) wish contribute them to Xara's source tree. You can
00073 find details of how to do this at:
00074   http://www.xaraxtreme.org/developers/
00075 
00076 Prior to contributing your modifications, you will need to complete our
00077 contributor agreement. This can be found at:
00078   http://www.xaraxtreme.org/developers/contribute/
00079 
00080 Please note that Xara will not accept modifications which modify any of
00081 the text between the start and end of this header (marked
00082 XARAHEADERSTART and XARAHEADEREND).
00083 
00084 
00085 MARKS
00086 -----
00087 
00088 Xara, Xara LX, Xara X, Xara X/Xtreme, Xara Xtreme, the Xtreme and Xara
00089 designs are registered or unregistered trademarks, design-marks, and/or
00090 service marks of Xara Group Ltd. All rights in these marks are reserved.
00091 
00092 
00093       Xara Group Ltd, Gaddesden Place, Hemel Hempstead, HP2 6EX, UK.
00094                         http://www.xara.com/
00095 
00096 =================================XARAHEADEREND============================
00097  */
00098 
00099 #include "camtypes.h"
00100 // camconfig.h must be included immediately after camtypes.h
00101 #include "camconfig.h"
00102 #include "xadrwold.h"
00103 #include "gdrawdbg.h"
00104 
00105 /***********************************************************************************************
00106 
00107   s_pContext is the global context used to simulate the global context of GDraw V2
00108 
00109 ***********************************************************************************************/
00110 
00111 static GCONTEXT* s_pContext = NULL;
00112 
00113 /***********************************************************************************************
00114 
00115   If CONFIG_DEBUG_XADRAW is defined XaDrawEnter and XaDrawLeave is called before and after each
00116   call to the real GDraw respectively.
00117 
00118 ***********************************************************************************************/
00119 
00120 #ifdef CONFIG_DEBUG_XADRAW
00121 
00122 /***********************************************************************************************
00123 
00124 >   static VOID XaDrawEnter(const TCHAR* pszFuncName, pcGCONTEXT pContext)
00125 
00126     Author:     Derek_Cox (Xara Group Ltd) <camelotdev@xara.com>
00127     Created:    29/05/2001
00128     Inputs:     pszFuncName - name of the GDraw function being called
00129                 pContext - pointer to the context passed to the GDraw function
00130     Returns:    -
00131     Purpose:    Called before the actual GDraw function is called when CONFIG_DEBUG_XADRAW
00132                 is defined
00133 
00134 ***********************************************************************************************/
00135 
00136 #define XA_DRAW_ENTER XaDrawEnter
00137 
00138 static VOID XaDrawEnter(const TCHAR* pszFuncName, pcGCONTEXT pContext)
00139 {
00140     TRACE(TEXT("%s - CTX: %p\n"), pszFuncName, pContext);
00141 }
00142 
00143 /***********************************************************************************************
00144 
00145 >   static VOID XaDrawLeave(pcGCONTEXT pContext)
00146 
00147     Author:     Derek_Cox (Xara Group Ltd) <camelotdev@xara.com>
00148     Created:    29/05/2001
00149     Inputs:     pContext - pointer to the context passed to the GDraw function
00150     Returns:    -
00151     Purpose:    Called after the actual GDraw function is called when CONFIG_DEBUG_XADRAW
00152                 is defined
00153 
00154 ***********************************************************************************************/
00155 
00156 #define XA_DRAW_LEAVE XaDrawLeave
00157 
00158 static VOID XaDrawLeave(pcGCONTEXT pContext)
00159 {
00160     if (NULL != pContext)
00161     {
00162         eError Error = g_XaFnsOriginal.pfnXaDraw_GetLastError(pContext);
00163         if (GERROR_NO_ERROR != Error)
00164         {
00165             TRACE(  TEXT("XaDraw Error: (%i) %s\n"),
00166                     (INT32)Error,
00167                     g_XaFnsOriginal.pfnXaDraw_GetLastErrorText(pContext));
00168         }
00169     }
00170 }
00171 
00172 #else
00173 
00174 /***********************************************************************************************
00175 
00176     If CONFIG_DEBUG_XADRAW is not defined XA_DRAW_ENTER and XA_DRAW_LEAVE expand to nothing.
00177 
00178 ***********************************************************************************************/
00179 
00180 #define XA_DRAW_ENTER(name,ctx)
00181 #define XA_DRAW_LEAVE(ctx)
00182 
00183 #endif
00184 
00185 /***********************************************************************************************
00186 
00187 >   const GCONTEXT* XaDrawOld_GetContext()
00188 
00189     Author:     Derek_Cox (Xara Group Ltd) <camelotdev@xara.com>
00190     Created:    29/05/2001
00191     Inputs:     -
00192     Returns:    const pointer to the global context
00193     Purpose:    Returns a pointer to the global context. (Useful for making clones of the
00194                 global context).
00195 
00196 ***********************************************************************************************/
00197 
00198 const GCONTEXT* XaDrawOld_GetContext()
00199 {
00200     return s_pContext;
00201 }
00202 
00203 /***********************************************************************************************
00204 
00205     Translations functions to provide the GDraw V2 interface to GDraw V3.
00206     See GDraw V2 for details about each function.
00207 
00208     Each wrapper:
00209         1) calls XA_DRAW_ENTER
00210         2) calls the original GDraw function,
00211         3) calls XA_DRAW_LEAVE
00212 
00213     Template:
00214     
00215     INT32 Xa<catgegory>Old_<fn_name>(INT32 nParam1)
00216     {
00217         XA_DRAW_ENTER(TEXT("<fn_name>"), s_pContext);
00218         INT32 nRetVal = Xa<category>_<fn_name>(s_pContext, nParam1);
00219         XA_DRAW_LEAVE(s_pContext);
00220         return nRetVal;
00221     }
00222 
00223 ***********************************************************************************************/
00224 
00225 DWORD XaDrawOld_GetVersion()
00226 {
00227     XA_DRAW_ENTER(TEXT("XaDrawOld_GetVersion"), NULL);
00228     DWORD nRetVal = XaDraw_GetVersion();
00229     XA_DRAW_LEAVE(NULL);
00230 
00231     if (NULL == s_pContext)
00232     {
00233         s_pContext = static_cast<GCONTEXT*>(malloc(XaDraw_ContextLength()));
00234         memset(s_pContext, 0, XaDraw_ContextLength());
00235         INT32 nError = XaDraw_Initialise(s_pContext, NULL);
00236         if (GERROR_NO_ERROR != nError)
00237             return 0;
00238     }
00239 
00240     return nRetVal;
00241 }
00242 
00243 INT32 XaDrawOld_ClearLastError()
00244 {
00245     XA_DRAW_ENTER(TEXT("XaDrawOld_ClearLastError"), s_pContext);
00246     INT32 nRetVal = XaDraw_ClearLastError(s_pContext);
00247     XA_DRAW_LEAVE(s_pContext);
00248     return nRetVal;
00249 }
00250 
00251 eError XaDrawOld_GetLastError()
00252 {
00253     XA_DRAW_ENTER(TEXT("XaDrawOld_GetLastError"), s_pContext);
00254     eError nRetVal = XaDraw_GetLastError(s_pContext);
00255     XA_DRAW_LEAVE(s_pContext);
00256     return nRetVal;
00257 }
00258 
00259 pcCHAR XaDrawOld_GetLastErrorText()
00260 {
00261     XA_DRAW_ENTER(TEXT("XaDrawOld_GetLastErrorText"), s_pContext);
00262     pcCHAR pRetVal = XaDraw_GetLastErrorText(s_pContext);
00263     XA_DRAW_LEAVE(s_pContext);
00264     return pRetVal;
00265 }
00266 
00267 INT32 XaColourOld_GetGraduationTableSize()
00268 {
00269     XA_DRAW_ENTER(TEXT("XaColourOld_GetGraduationTableSize"), s_pContext);
00270     INT32 nRetVal = XaColour_GetGraduationTableSize(s_pContext);
00271     XA_DRAW_LEAVE(s_pContext);
00272     return nRetVal;
00273 }
00274 
00275 INT32 XaColourOld_GetGraduationTableLength()
00276 {
00277     XA_DRAW_ENTER(TEXT("XaColourOld_GetGraduationTableLength"), NULL);
00278     INT32 nRetVal = XaColour_GetGraduationTableLength();
00279     XA_DRAW_LEAVE(NULL);
00280     return nRetVal;
00281 }
00282 
00283 INT32 XaColourOld_GetLongGraduationTableSize()
00284 {
00285     XA_DRAW_ENTER(TEXT("XaColourOld_GetLongGraduationTableSize"), s_pContext);
00286     INT32 nRetVal = XaColour_GetLongGraduationTableSize(s_pContext);
00287     XA_DRAW_LEAVE(s_pContext);
00288     return nRetVal;
00289 }
00290 
00291 INT32 XaColourOld_GetLongGraduationTableLength()
00292 {
00293     XA_DRAW_ENTER(TEXT("XaColourOld_GetLongGraduationTableLength"), NULL);
00294     INT32 nRetVal = XaColour_GetLongGraduationTableLength();
00295     XA_DRAW_LEAVE(NULL);
00296     return nRetVal;
00297 }
00298 
00299 INT32 XaColourOld_GetTransparentGraduationTableSize()
00300 {
00301     XA_DRAW_ENTER(TEXT("XaColourOld_GetTransparentGraduationTableSize"), NULL);
00302     INT32 nRetVal = XaColour_GetTransparentGraduationTableSize();
00303     XA_DRAW_LEAVE(NULL);
00304     return nRetVal;
00305 }
00306 
00307 INT32 XaColourOld_GetTransparentGraduationTableLength()
00308 {
00309     XA_DRAW_ENTER(TEXT("XaColourOld_GetTransparentGraduationTableLength"), NULL);
00310     INT32 nRetVal = XaColour_GetTransparentGraduationTableLength();
00311     XA_DRAW_LEAVE(NULL);
00312     return nRetVal;
00313 }
00314 
00315 INT32 XaColourOld_GetLongTransparentGraduationTableSize()
00316 {
00317     XA_DRAW_ENTER(TEXT("XaColourOld_GetLongTransparentGraduationTableSize"), NULL);
00318     INT32 nRetVal = XaColour_GetLongTransparentGraduationTableSize();
00319     XA_DRAW_LEAVE(NULL);
00320     return nRetVal;
00321 }
00322 
00323 INT32 XaColourOld_GetLongTransparentGraduationTableLength()
00324 {
00325     XA_DRAW_ENTER(TEXT("XaColourOld_GetLongTransparentGraduationTableLength"), NULL);
00326     INT32 nRetVal = XaColour_GetLongTransparentGraduationTableLength();
00327     XA_DRAW_LEAVE(NULL);
00328     return nRetVal;
00329 }
00330 
00331 INT32 XaDrawOld_IsFPU(BOOL Flag)
00332 {
00333     Flag = Flag;
00334     // No longer required
00335     return GERROR_NO_ERROR;
00336 }
00337 
00338 INT32 XaDrawOld_SetMemoryHandlers(
00339     pBYTE (*MemoryAlloc)( UINT32 Size ),
00340     void  (*MemoryFree) ( pBYTE Address )
00341 )
00342 {
00343     XA_DRAW_ENTER(TEXT("XaDrawOld_SetMemoryHandlers"), s_pContext);
00344     INT32 nRetVal =
00345         XaDraw_SetMemoryHandlers(s_pContext, MemoryAlloc, MemoryFree);
00346     XA_DRAW_LEAVE(s_pContext);
00347     return nRetVal;
00348 }
00349 
00350 INT32 XaDrawOld_SetStackLimit( pcVOID StackLimit )
00351 {
00352     XA_DRAW_ENTER(TEXT("XaDrawOld_SetStackLimit"), s_pContext);
00353     INT32 nRetVal =
00354         XaDraw_SetStackLimit(s_pContext, StackLimit);
00355     XA_DRAW_LEAVE(s_pContext);
00356     return nRetVal;
00357 }
00358 
00359 INT32 XaDrawOld_SetStackSize( UINT32 StackSize )
00360 {
00361     XA_DRAW_ENTER(TEXT("XaDrawOld_SetStackSize"), s_pContext);
00362     INT32 nRetVal =
00363         XaDraw_SetStackSize(s_pContext, StackSize);
00364     XA_DRAW_LEAVE(s_pContext);
00365     return nRetVal;
00366 }
00367 
00368 INT32 XaDrawOld_Terminate()
00369 {
00370     XA_DRAW_ENTER(TEXT("XaDrawOld_Terminate"), s_pContext);
00371     INT32 nRetVal =
00372         XaDraw_Terminate(s_pContext);
00373     XA_DRAW_LEAVE(s_pContext);
00374 
00375     if (NULL != s_pContext)
00376     {
00377         free(s_pContext);
00378         s_pContext = NULL;
00379     }
00380 
00381     return nRetVal;
00382 }
00383 
00384 INT32 XaDrawOld_ContextLength()
00385 {
00386     XA_DRAW_ENTER(TEXT("XaDrawOld_ContextLength"), NULL);
00387     INT32 nRetVal =
00388         XaDraw_ContextLength();
00389     XA_DRAW_LEAVE(NULL);
00390     return nRetVal;
00391 }
00392 
00393 INT32 XaDrawOld_ComparePalettes( pcGCONTEXT pContext, pcLOGPALETTE Palette,BOOL Flag )
00394 {
00395     XA_DRAW_ENTER(TEXT("XaDrawOld_ComparePalettes"), s_pContext);
00396     INT32 nRetVal =
00397         XaDraw_ComparePalettes(pContext, Palette, Flag);
00398     XA_DRAW_LEAVE(s_pContext);
00399     return nRetVal;
00400 }
00401 
00402 INT32 XaDrawOld_SaveContext(pGCONTEXT pContext)
00403 {
00404     XA_DRAW_ENTER(TEXT("XaDrawOld_SaveContext"), s_pContext);
00405     INT32 nRetVal = XaDraw_CopyContext(s_pContext, pContext);
00406     XA_DRAW_LEAVE(s_pContext);
00407     return nRetVal;
00408 }
00409 
00410 INT32 XaDrawOld_RestoreContext(pcGCONTEXT pContext)
00411 {
00412     XA_DRAW_ENTER(TEXT("XaDrawOld_RestoreContext"), s_pContext);
00413     INT32 nRetVal = XaDraw_CopyContext(pContext, s_pContext);
00414     DWORD* pStyle = (DWORD*)((BYTE*)s_pContext + 0x37C);
00415     *pStyle = 0;    // STYLE_INVALID
00416     XA_DRAW_LEAVE(s_pContext);
00417     return nRetVal;
00418 }
00419 
00420 pcLOGPALETTE XaColourOld_SelectPalette( BOOL Flag )
00421 {
00422     XA_DRAW_ENTER(TEXT("XaColourOld_SelectPalette"), s_pContext);
00423     pcLOGPALETTE pRetVal =
00424         XaColour_SelectPalette(s_pContext, Flag);
00425     XA_DRAW_LEAVE(s_pContext);
00426     return pRetVal;
00427 }
00428 
00429 INT32 XaColourOld_InitialiseWithPalette( pcLOGPALETTE Palette )
00430 {
00431     XA_DRAW_ENTER(TEXT("XaColourOld_InitialiseWithPalette"), s_pContext);
00432     INT32 nRetVal =
00433         XaColour_InitialiseWithPalette(s_pContext, Palette);
00434     XA_DRAW_LEAVE(s_pContext);
00435     return nRetVal;
00436 }
00437 
00438 INT32 XaColourOld_SetDitherStyle( DitherStyle Style /* =DITHER_GREY_ORDERED */)
00439 {
00440     XA_DRAW_ENTER(TEXT("XaColourOld_SetDitherStyle"), s_pContext);
00441     INT32 nRetVal =
00442         XaColour_SetDitherStyle(s_pContext, Style);
00443     XA_DRAW_LEAVE(s_pContext);
00444     return nRetVal;
00445 }
00446 
00447 INT32 XaColourOld_SetTileSmoothingFlag( BOOL Flag )
00448 {
00449     XA_DRAW_ENTER(TEXT("XaColourOld_SetTileSmoothingFlag"), s_pContext);
00450     INT32 nRetVal =
00451         XaColour_SetTileSmoothingFlag(s_pContext, Flag);
00452     XA_DRAW_LEAVE(s_pContext);
00453     return nRetVal;
00454 }
00455 
00456 INT32 XaColourOld_SetTileFilteringFlag( BOOL Flag )
00457 {
00458     XA_DRAW_ENTER(TEXT("XaColourOld_SetTileFilteringFlag"), s_pContext);
00459     INT32 nRetVal =
00460         XaColour_SetTileFilteringFlag(s_pContext, Flag);
00461     XA_DRAW_LEAVE(s_pContext);
00462     return nRetVal;
00463 }
00464 
00465 INT32 XaColourOld_SetHalftoneOrigin( INT32 x,INT32 y )
00466 {
00467     XA_DRAW_ENTER(TEXT("XaColourOld_SetHalftoneOrigin"), s_pContext);
00468     INT32 nRetVal =
00469         XaColour_SetHalftoneOrigin(s_pContext, x, y);
00470     XA_DRAW_LEAVE(s_pContext);
00471     return nRetVal;
00472 }
00473 
00474 INT32 XaColourOld_SetColour( COLORREF Colour )
00475 {
00476     XA_DRAW_ENTER(TEXT("XaColourOld_SetColour"), s_pContext);
00477     INT32 nRetVal =
00478         XaColour_SetColour(s_pContext, Colour);
00479     XA_DRAW_LEAVE(s_pContext);
00480     return nRetVal;
00481 }
00482 
00483 INT32 XaColourOld_SetSolidColour(   COLORREF Colour,
00484                                     UINT32 BPP,UINT32 Format16BPP)
00485 {
00486     XA_DRAW_ENTER(TEXT("XaColourOld_SetSolidColour"), s_pContext);
00487     INT32 nRetVal =
00488         XaColour_SetSolidColour(s_pContext, Colour, BPP, Format16BPP);
00489     XA_DRAW_LEAVE(s_pContext);
00490     return nRetVal;
00491 }
00492 
00493 INT32 XaColourOld_SetWordColour( DWORD Colour )
00494 {
00495     XA_DRAW_ENTER(TEXT("XaColourOld_SetWordColour"), s_pContext);
00496     INT32 nRetVal =
00497         XaColour_SetWordColour(s_pContext, Colour);
00498     XA_DRAW_LEAVE(s_pContext);
00499     return nRetVal;
00500 }
00501 
00502 INT32 XaColourOld_SetInvert( DWORD Colour )
00503 {
00504     XA_DRAW_ENTER(TEXT("XaColourOld_SetInvert"), s_pContext);
00505     INT32 nRetVal =
00506         XaColour_SetInvert(s_pContext, Colour);
00507     XA_DRAW_LEAVE(s_pContext);
00508     return nRetVal;
00509 }
00510 
00511 INT32 XaColourOld_SetTransparency( COLORREF Colour,DWORD Style )
00512 {
00513     XA_DRAW_ENTER(TEXT("XaColourOld_SetTransparency"), s_pContext);
00514     INT32 nRetVal =
00515         XaColour_SetTransparency(s_pContext, Colour, Style);
00516     XA_DRAW_LEAVE(s_pContext);
00517     return nRetVal;
00518 }
00519 
00520 INT32 XaColourOld_SetTransparencyLookupTable( pcBYTE Table )
00521 {
00522     XA_DRAW_ENTER(TEXT("XaColourOld_SetTransparencyLookupTable"), s_pContext);
00523     INT32 nRetVal =
00524         XaColour_SetTransparencyLookupTable(s_pContext, Table);
00525     XA_DRAW_LEAVE(s_pContext);
00526     return nRetVal;
00527 }
00528 
00529 pcBYTE XaColourOld_ReturnBrush()
00530 {
00531     XA_DRAW_ENTER(TEXT("XaColourOld_ReturnBrush"), s_pContext);
00532     pcBYTE pRetVal =
00533         XaColour_ReturnBrush(s_pContext);
00534     XA_DRAW_LEAVE(s_pContext);
00535     return pRetVal;
00536 }
00537 
00538 pcBYTE XaColourOld_ReturnBrushRGB()
00539 {
00540     XA_DRAW_ENTER(TEXT("XaColourOld_ReturnBrushRGB"), s_pContext);
00541     pcBYTE pRetVal =
00542         XaColour_ReturnBrushRGB(s_pContext);
00543     XA_DRAW_LEAVE(s_pContext);
00544     return pRetVal;
00545 }
00546 
00547 INT32 XaColourOld_AddToGraduationTable(
00548     COLORREF Colour,
00549     BOOL HSVFlag,
00550     pGraduationTable Table,
00551     UINT32 Index
00552 )
00553 {
00554     XA_DRAW_ENTER(TEXT("XaColourOld_AddToGraduationTable"), s_pContext);
00555     INT32 nRetVal =
00556         XaColour_AddToGraduationTable(s_pContext, Colour, HSVFlag,
00557                                                             Table, Index);
00558     XA_DRAW_LEAVE(s_pContext);
00559     return nRetVal;
00560 }
00561 
00562 INT32 XaColourOld_BuildGraduationTable(
00563     COLORREF StartColour,
00564     COLORREF EndColour,
00565     BOOL HSVFlag,
00566     pGraduationTable Table
00567 )
00568 {
00569     XA_DRAW_ENTER(TEXT("XaColourOld_BuildGraduationTable"), s_pContext);
00570     INT32 nRetVal =
00571         XaColour_BuildGraduationTable(s_pContext, StartColour, EndColour,
00572                                                             HSVFlag, Table);
00573     XA_DRAW_LEAVE(s_pContext);
00574     return nRetVal;
00575 }
00576 
00577 INT32 XaColourOld_BuildGraduationTable32(
00578     COLORREF StartColour,
00579     COLORREF EndColour,
00580     BOOL HSVFlag,
00581     pGraduationTable32 Table
00582 )
00583 {
00584     XA_DRAW_ENTER(TEXT("XaColourOld_BuildGraduationTable32"), s_pContext);
00585     INT32 nRetVal =
00586         XaColour_BuildGraduationTable32(s_pContext, StartColour, EndColour,
00587                                                             HSVFlag, Table);
00588     XA_DRAW_LEAVE(s_pContext);
00589     return nRetVal;
00590 }
00591 
00592 INT32 XaColourOld_BuildTransparencyTable(
00593     BYTE StartColour,
00594     BYTE EndColour,
00595     pTransparentGradTable Table
00596 )
00597 {
00598     XA_DRAW_ENTER(TEXT("XaColourOld_BuildTransparencyTable"), s_pContext);
00599     INT32 nRetVal =
00600         XaColour_BuildTransparencyTable(s_pContext, StartColour, EndColour,
00601                                                             Table);
00602     XA_DRAW_LEAVE(s_pContext);
00603     return nRetVal;
00604 }
00605 
00606 INT32 XaColourOld_SetGraduation(
00607     DWORD Style,
00608     pcGraduationTable Table,
00609     pcPOINT PointA,
00610     pcPOINT PointB,
00611     pcPOINT PointC
00612 )
00613 {
00614     XA_DRAW_ENTER(TEXT("XaColourOld_SetGraduation"), s_pContext);
00615     INT32 nRetVal =
00616         XaColour_SetGraduation(s_pContext, Style, Table,
00617                                                     PointA, PointB, PointC);
00618     XA_DRAW_LEAVE(s_pContext);
00619     return nRetVal;
00620 }
00621 
00622 INT32 XaColourOld_SetGraduation4(
00623     DWORD Style,
00624     pcGraduationTable Table,
00625     pcPOINT PointA,
00626     pcPOINT PointB,
00627     pcPOINT PointC,
00628     pcPOINT PointD
00629 )
00630 {
00631     XA_DRAW_ENTER(TEXT("XaColourOld_SetGraduation4"), s_pContext);
00632     INT32 nRetVal =
00633         XaColour_SetGraduation4(s_pContext, Style, Table,
00634                                                     PointA, PointB, PointC, PointD);
00635     XA_DRAW_LEAVE(s_pContext);
00636     return nRetVal;
00637 }
00638 
00639 INT32 XaColourOld_SetMultiRadial(
00640     DWORD Style,
00641     pcGraduationTable Table,
00642     pcPOINT PointA,
00643     pcPOINT PointB,
00644     pcPOINT PointC,
00645     pcPOINT PointD
00646 )
00647 {
00648     return GERROR_UNIMPLEMENTED;
00649 }
00650 
00651 INT32 XaColourOld_Set3WayGraduation(
00652     DWORD Style,
00653     COLORREF ColourA, COLORREF ColourB, COLORREF ColourD,
00654     pcPOINT   PointA, pcPOINT   PointB, pcPOINT   PointD
00655 )
00656 {
00657     XA_DRAW_ENTER(TEXT("XaColourOld_Set3WayGraduation"), s_pContext);
00658     INT32 nRetVal =
00659         XaColour_Set3WayGraduation( s_pContext, Style,
00660                                                         ColourA, ColourB, ColourD,
00661                                                         PointA, PointB, PointD);
00662     XA_DRAW_LEAVE(s_pContext);
00663     return nRetVal;
00664 }
00665 
00666 INT32 XaColourOld_Set3WayGraduation4(
00667     DWORD Style,
00668     COLORREF ColourA, COLORREF ColourB,                   COLORREF ColourD,
00669     pcPOINT   PointA, pcPOINT   PointB, pcPOINT   PointC, pcPOINT   PointD
00670 )
00671 {
00672     XA_DRAW_ENTER(TEXT("XaColourOld_Set3WayGraduation4"), s_pContext);
00673     INT32 nRetVal =
00674         XaColour_Set3WayGraduation4(s_pContext, Style,
00675                                                         ColourA, ColourB, ColourD,
00676                                                         PointA, PointB, PointC, PointD);
00677     XA_DRAW_LEAVE(s_pContext);
00678     return nRetVal;
00679 }
00680 
00681 INT32 XaColourOld_Set4WayGraduation(
00682     DWORD Style,
00683     COLORREF ColourA, COLORREF ColourB, COLORREF ColourC, COLORREF ColourD,
00684     pcPOINT   PointA, pcPOINT   PointB,                   pcPOINT   PointD
00685 )
00686 {
00687     XA_DRAW_ENTER(TEXT("XaColourOld_Set4WayGraduation"), s_pContext);
00688     INT32 nRetVal =
00689         XaColour_Set4WayGraduation( s_pContext, Style,
00690                                                         ColourA, ColourB, ColourC, ColourD,
00691                                                         PointA, PointB, PointD);
00692     XA_DRAW_LEAVE(s_pContext);
00693     return nRetVal;
00694 }
00695 
00696 INT32 XaColourOld_Set4WayGraduation4(
00697     DWORD Style,
00698     COLORREF ColourA, COLORREF ColourB, COLORREF ColourC, COLORREF ColourD,
00699     pcPOINT   PointA, pcPOINT   PointB, pcPOINT   PointC, pcPOINT   PointD
00700 )
00701 {
00702     XA_DRAW_ENTER(TEXT("XaColourOld_Set4WayGraduation4"), s_pContext);
00703     INT32 nRetVal =
00704         XaColour_Set4WayGraduation4(    s_pContext, Style,
00705                                                         ColourA, ColourB, ColourC, ColourD,
00706                                                         PointA, PointB, PointC, PointD);
00707     XA_DRAW_LEAVE(s_pContext);
00708     return nRetVal;
00709 }
00710 
00711 INT32 XaColourOld_SetGourand(
00712     DWORD Style,
00713     COLORREF ColourA, COLORREF ColourB, COLORREF ColourD,
00714     pcPOINT   PointA, pcPOINT   PointB, pcPOINT   PointD
00715 )
00716 {
00717     XA_DRAW_ENTER(TEXT("XaColourOld_SetGourand"), s_pContext);
00718     INT32 nRetVal =
00719         XaColour_SetGourand(s_pContext, Style,
00720                                                 ColourA, ColourB, ColourD,
00721                                                 PointA, PointB, PointD);
00722     XA_DRAW_LEAVE(s_pContext);
00723     return nRetVal;
00724 }
00725 
00726 INT32 XaColourOld_SetTransparentGraduation(
00727     DWORD Style,
00728     pcTransparentGradTable Table,
00729     pcPOINT PointA,
00730     pcPOINT PointB,
00731     pcPOINT PointC
00732 )
00733 {
00734     XA_DRAW_ENTER(TEXT("XaColourOld_SetTransparentGraduation"), s_pContext);
00735     INT32 nRetVal =
00736         XaColour_SetTransparentGraduation(  s_pContext, Style, Table,
00737                                                                 PointA, PointB, PointC);
00738     XA_DRAW_LEAVE(s_pContext);
00739     return nRetVal;
00740 }
00741 
00742 INT32 XaColourOld_SetTransparentGraduation4(
00743     DWORD Style,
00744     pcTransparentGradTable Table,
00745     pcPOINT PointA,
00746     pcPOINT PointB,
00747     pcPOINT PointC,
00748     pcPOINT PointD
00749 )
00750 {
00751     XA_DRAW_ENTER(TEXT("XaColourOld_SetTransparentGraduation4"), s_pContext);
00752     INT32 nRetVal =
00753         XaColour_SetTransparentGraduation4( s_pContext, Style, Table,
00754                                                                 PointA, PointB, PointC, PointD);
00755     XA_DRAW_LEAVE(s_pContext);
00756     return nRetVal;
00757 }
00758 
00759 INT32 XaColourOld_SetTransparent3WayGraduation(
00760     DWORD Style,
00761     BYTE    ValueA, BYTE    ValueB, BYTE    ValueD,
00762     pcPOINT PointA, pcPOINT PointB, pcPOINT PointD
00763 )
00764 {
00765     XA_DRAW_ENTER(TEXT("XaColourOld_SetTransparent3WayGraduation"), s_pContext);
00766     INT32 nRetVal =
00767         XaColour_SetTransparent3WayGraduation(  s_pContext, Style,
00768                                                                     ValueA, ValueB, ValueD,
00769                                                                     PointA, PointB, PointD);
00770     XA_DRAW_LEAVE(s_pContext);
00771     return nRetVal;
00772 }
00773 
00774 INT32 XaColourOld_SetTransparent3WayGraduation4(
00775     DWORD Style,
00776     BYTE    ValueA, BYTE    ValueB,                 BYTE    ValueD,
00777     pcPOINT PointA, pcPOINT PointB, pcPOINT PointC, pcPOINT PointD
00778 )
00779 {
00780     XA_DRAW_ENTER(TEXT("XaColourOld_SetTransparent3WayGraduation4"), s_pContext);
00781     INT32 nRetVal =
00782         XaColour_SetTransparent3WayGraduation4( s_pContext, Style,
00783                                                                     ValueA, ValueB, ValueD,
00784                                                                     PointA, PointB, PointC, PointD);
00785     XA_DRAW_LEAVE(s_pContext);
00786     return nRetVal;
00787 }
00788 
00789 INT32 XaColourOld_SetTransparent4WayGraduation(
00790     DWORD Style,
00791     BYTE    ValueA, BYTE    ValueB, BYTE    ValueC, BYTE    ValueD,
00792     pcPOINT PointA, pcPOINT PointB,                 pcPOINT PointD
00793 )
00794 {
00795     XA_DRAW_ENTER(TEXT("XaColourOld_SetTransparent4WayGraduation"), s_pContext);
00796     INT32 nRetVal =
00797         XaColour_SetTransparent4WayGraduation(  s_pContext, Style,
00798                                                                     ValueA, ValueB, ValueC, ValueD,
00799                                                                     PointA, PointB,         PointD);
00800     XA_DRAW_LEAVE(s_pContext);
00801     return nRetVal;
00802 }
00803 
00804 INT32 XaColourOld_SetTransparent4WayGraduation4(
00805     DWORD Style,
00806     BYTE    ValueA, BYTE    ValueB, BYTE    ValueC, BYTE    ValueD,
00807     pcPOINT PointA, pcPOINT PointB, pcPOINT PointC, pcPOINT PointD
00808 )
00809 {
00810     XA_DRAW_ENTER(TEXT("XaColourOld_SetTransparent4WayGraduation4"), s_pContext);
00811     INT32 nRetVal =
00812         XaColour_SetTransparent4WayGraduation4( s_pContext, Style,
00813                                                                     ValueA, ValueB, ValueC, ValueD,
00814                                                                     PointA, PointB, PointC, PointD);
00815     XA_DRAW_LEAVE(s_pContext);
00816     return nRetVal;
00817 }
00818 
00819 INT32 XaBitmapOld_SetBias( double fBias )
00820 {
00821     XA_DRAW_ENTER(TEXT("XaBitmapOld_SetBias"),s_pContext);
00822     INT32 nRetVal = XaBitmap_SetBias(s_pContext,fBias);
00823     XA_DRAW_LEAVE(s_pConvert);
00824     return nRetVal;
00825 }
00826 
00827 INT32 XaBitmapOld_SetGain( double fGain )
00828 {
00829     XA_DRAW_ENTER(TEXT("XaBitmapOld_SetGain"),s_pContext);
00830     INT32 nRetVal = XaBitmap_SetGain(s_pContext,fGain);
00831     XA_DRAW_LEAVE(s_pConvert);
00832     return nRetVal;
00833 }
00834 
00835 INT32 XaBitmapOld_SetContone( UINT32 uContoneStyle, COLORREF rgbStart,COLORREF rgbEnd )
00836 {
00837     XA_DRAW_ENTER(TEXT("XaBitmapOld_SetContone"),s_pContext);
00838     INT32 nRetVal = XaBitmap_SetContone(s_pContext,uContoneStyle,rgbStart,rgbEnd);
00839     XA_DRAW_LEAVE(s_pConvert);
00840     return nRetVal;
00841 }
00842 
00843 INT32 XaBitmapOld_SetInputRange( BYTE uStart, BYTE uEnd )
00844 {
00845     XA_DRAW_ENTER(TEXT("XaBitmapOld_SetInputRange"),s_pContext);
00846     INT32 nRetVal = XaBitmap_SetInputRange(s_pContext,uStart,uEnd);
00847     XA_DRAW_LEAVE(s_pConvert);
00848     return nRetVal;
00849 }
00850 
00851 INT32 XaBitmapOld_SetOutputRange( BYTE uStart, BYTE uEnd )
00852 {
00853     XA_DRAW_ENTER(TEXT("XaBitmapOld_SetOutputRange"),s_pContext);
00854     INT32 nRetVal = XaBitmap_SetOutputRange(s_pContext,uStart,uEnd);
00855     XA_DRAW_LEAVE(s_pConvert);
00856     return nRetVal;
00857 }
00858 
00859 INT32 XaColourOld_SetTilePattern(
00860     pcBITMAPINFOHEADER BitmapInfo,
00861     pcBYTE Bitmap,
00862     DWORD Style,
00863     pcPOINT PointA,
00864     pcPOINT PointB,
00865     pcPOINT PointC,
00866     COLORREF DefaultColour /* =0 */,
00867     pcBGRT TranslationTable /* =0 */,
00868     pcBYTE   RedTranslationTable /* =0 */,
00869     pcBYTE GreenTranslationTable /* =0 */,
00870     pcBYTE  BlueTranslationTable /* =0 */,
00871     pcBYTE TransparencyTranslationTable /* =0 */,
00872     INT32 TileOffset /* =0 */
00873 )
00874 {
00875     XA_DRAW_ENTER(TEXT("XaColourOld_SetTilePattern"), s_pContext);
00876     INT32 nRetVal =
00877         XaColour_SetTilePattern(s_pContext,
00878                                                     BitmapInfo, Bitmap, Style,
00879                                                     PointA, PointB, PointC,
00880                                                     DefaultColour,
00881                                                     TranslationTable,
00882                                                     RedTranslationTable,
00883                                                     GreenTranslationTable,
00884                                                     BlueTranslationTable,
00885                                                     TransparencyTranslationTable,
00886                                                     TileOffset);
00887     XA_DRAW_LEAVE(s_pContext);
00888     return nRetVal;
00889 }
00890 
00891 INT32 XaColourOld_SetTilePattern4(
00892     pcBITMAPINFOHEADER BitmapInfo,
00893     pcBYTE Bitmap,
00894     DWORD Style,
00895     pcPOINT PointA,
00896     pcPOINT PointB,
00897     pcPOINT PointC,
00898     pcPOINT PointD,
00899     COLORREF DefaultColour /* =0 */,
00900     pcBGRT TranslationTable /* =0 */,
00901     pcBYTE   RedTranslationTable /* =0 */,
00902     pcBYTE GreenTranslationTable /* =0 */,
00903     pcBYTE  BlueTranslationTable /* =0 */,
00904     pcBYTE TransparencyTranslationTable /* =0 */,
00905     INT32 TileOffset /* =0 */
00906 )
00907 {
00908     XA_DRAW_ENTER(TEXT("XaColourOld_SetTilePattern4"), s_pContext);
00909     INT32 nRetVal =
00910         XaColour_SetTilePattern4(s_pContext,
00911                                                     BitmapInfo, Bitmap, Style,
00912                                                     PointA, PointB, PointC, PointD,
00913                                                     DefaultColour,
00914                                                     TranslationTable,
00915                                                     RedTranslationTable,
00916                                                     GreenTranslationTable,
00917                                                     BlueTranslationTable,
00918                                                     TransparencyTranslationTable,
00919                                                     TileOffset);
00920     XA_DRAW_LEAVE(s_pContext);
00921     return nRetVal;
00922 }
00923 
00924 INT32 XaColourOld_SetTransparentTilePattern(
00925     pcBITMAPINFOHEADER BitmapInfo,
00926     pcBYTE Bitmap,
00927     DWORD Style,
00928     pcPOINT PointA,
00929     pcPOINT PointB,
00930     pcPOINT PointC,
00931     BYTE DefaultColour /* =0 */,
00932     pcBYTE TransparencyTranslationTable /* =0 */,
00933     INT32 TileOffset /* =0 */
00934 )
00935 {
00936     XA_DRAW_ENTER(TEXT("XaColourOld_SetTransparentTilePattern"), s_pContext);
00937     INT32 nRetVal =
00938         XaColour_SetTransparentTilePattern(s_pContext,
00939                                                     BitmapInfo, Bitmap, Style,
00940                                                     PointA, PointB, PointC,
00941                                                     DefaultColour,
00942                                                     TransparencyTranslationTable,
00943                                                     TileOffset);
00944     XA_DRAW_LEAVE(s_pContext);
00945     return nRetVal;
00946 }
00947 
00948 INT32 XaColourOld_SetTransparentTilePattern4(
00949     pcBITMAPINFOHEADER BitmapInfo,
00950     pcBYTE Bitmap,
00951     DWORD Style,
00952     pcPOINT PointA,
00953     pcPOINT PointB,
00954     pcPOINT PointC,
00955     pcPOINT PointD,
00956     BYTE DefaultColour /* =0 */,
00957     pcBYTE TransparencyTranslationTable /* =0 */,
00958     INT32 TileOffset /* =0 */
00959 )
00960 {
00961     XA_DRAW_ENTER(TEXT("XaColourOld_SetTransparentTilePattern4"), s_pContext);
00962     INT32 nRetVal =
00963         XaColour_SetTransparentTilePattern4(s_pContext,
00964                                                     BitmapInfo, Bitmap, Style,
00965                                                     PointA, PointB, PointC, PointD,
00966                                                     DefaultColour,
00967                                                     TransparencyTranslationTable,
00968                                                     TileOffset);
00969     XA_DRAW_LEAVE(s_pContext);
00970     return nRetVal;
00971 }
00972 
00973 INT32 XaColourOld_ConvertBitmap(
00974     pcBITMAPINFOHEADER SBitmapInfo, pcBYTE SBitmap,
00975     pcBITMAPINFOHEADER DBitmapInfo,  pBYTE DBitmap,
00976     DWORD Dither
00977 )
00978 {
00979     XA_DRAW_ENTER(TEXT("XaColourOld_ConvertBitmap"), s_pContext);
00980     INT32 nRetVal =
00981         XaColour_ConvertBitmap( s_pContext,
00982                                                     SBitmapInfo, SBitmap,
00983                                                     DBitmapInfo, DBitmap, Dither);
00984     XA_DRAW_LEAVE(s_pContext);
00985     return nRetVal;
00986 }
00987 
00988 INT32 XaColourOld_SetConversionPalette( pcLOGPALETTE pPalette )
00989 {
00990     XA_DRAW_ENTER(TEXT("XaColourOld_SetConversionPalette"), s_pContext);
00991     INT32 nRetVal =
00992         XaColour_SetConversionPalette(s_pContext, pPalette);
00993     XA_DRAW_LEAVE(s_pContext);
00994     return nRetVal;
00995 }
00996 
00997 INT32 XaColourOld_SetMaxDiffusionError( UINT32 MaxError )
00998 {
00999     XA_DRAW_ENTER(TEXT("XaColourOld_SetMaxDiffusionError"), s_pContext);
01000     INT32 nRetVal =
01001         XaColour_SetMaxDiffusionError(s_pContext, MaxError);
01002     XA_DRAW_LEAVE(s_pContext);
01003     return nRetVal;
01004 }
01005 
01006 INT32 XaColourOld_ScaleBitmap(
01007     pcBITMAPINFOHEADER SBitmapInfo, pcBYTE SBitmap,
01008     pcBITMAPINFOHEADER DBitmapInfo,  pBYTE DBitmap,
01009     UINT32 Channels
01010 )
01011 {
01012     XA_DRAW_ENTER(TEXT("XaColourOld_ScaleBitmap"), s_pContext);
01013     INT32 nRetVal =
01014         XaColour_ScaleBitmap(   s_pContext,
01015                                                     SBitmapInfo, SBitmap,
01016                                                     DBitmapInfo, DBitmap,
01017                                                     Channels);
01018     XA_DRAW_LEAVE(s_pContext);
01019     return nRetVal;
01020 }
01021 
01022 
01023 INT32 XaColourOld_SetGreyConversionValues( UINT32 Red,UINT32 Green,UINT32 Blue )
01024 {
01025     XA_DRAW_ENTER(TEXT("XaColourOld_SetGreyConversionValues"), s_pContext);
01026     INT32 nRetVal =
01027         XaColour_SetGreyConversionValues(   s_pContext,
01028                                                                 Red, Green, Blue);
01029     XA_DRAW_LEAVE(s_pContext);
01030     return nRetVal;
01031 }
01032 
01033 COLORREF XaColourOld_ConvertHSVtoRGB( COLORREF hsv )
01034 {
01035     XA_DRAW_ENTER(TEXT("XaColourOld_ConvertHSVtoRGB"), NULL);
01036     COLORREF rgb =
01037         XaColour_ConvertHSVtoRGB(hsv);
01038     XA_DRAW_LEAVE(NULL);
01039     return rgb;
01040 }
01041 
01042 COLORREF XaColourOld_ConvertRGBtoHSV( COLORREF rgb )
01043 {
01044     XA_DRAW_ENTER(TEXT("XaColourOld_ConvertRGBtoHSV"), NULL);
01045     COLORREF hsv =
01046         XaColour_ConvertRGBtoHSV(rgb);
01047     XA_DRAW_LEAVE(NULL);
01048     return hsv;
01049 }
01050 
01051 INT32 XaColourOld_SetSeparationTables(
01052     pcBGR    CyanSeparationTable,
01053     pcBGR MagentaSeparationTable,
01054     pcBGR  YellowSeparationTable,
01055     pcBGR   BlackSeparationTable,
01056     pcBYTE UnderColourRemovalTable,
01057     pcBYTE BlackGenerationTable
01058 )
01059 {
01060     XA_DRAW_ENTER(TEXT("XaColourOld_SetSeparationTables"), s_pContext);
01061     INT32 nRetVal =
01062         XaColour_SetSeparationTables(   s_pContext,
01063                                                             CyanSeparationTable,
01064                                                             MagentaSeparationTable,
01065                                                             YellowSeparationTable,
01066                                                             BlackSeparationTable,
01067                                                             UnderColourRemovalTable,
01068                                                             BlackGenerationTable);
01069     XA_DRAW_LEAVE(s_pContext);
01070     return nRetVal;
01071 }
01072 
01073 INT32 XaColourOld_SetBitmapConversionTable(
01074     pcBGR BitmapConversionTable
01075 )
01076 {
01077     XA_DRAW_ENTER(TEXT("XaColourOld_SetBitmapConversionTable"), s_pContext);
01078     INT32 nRetVal =
01079         XaColour_SetBitmapConversionTable(  s_pContext,
01080                                                                 BitmapConversionTable);
01081     XA_DRAW_LEAVE(s_pContext);
01082     return nRetVal;
01083 }
01084 
01085 INT32 XaDrawOld_SetDIBitmap(
01086     pcBITMAPINFOHEADER BitmapInfo,
01087     pBYTE Bitmap,
01088     UINT32 Format16BPP /* =FORMAT16BPP_555 */
01089 )
01090 {
01091     XA_DRAW_ENTER(TEXT("XaDrawOld_SetDIBitmap"), s_pContext);
01092     INT32 nRetVal =
01093         XaDraw_SetDIBitmap( s_pContext,
01094                                                 BitmapInfo, Bitmap, Format16BPP);
01095     XA_DRAW_LEAVE(s_pContext);
01096     return nRetVal;
01097 }
01098 
01099 INT32 XaDrawOld_SetInvertedDIBitmap(
01100     pcBITMAPINFOHEADER BitmapInfo,
01101     pBYTE Bitmap,
01102     UINT32 Format16BPP /* =FORMAT16BPP_555 */
01103 )
01104 {
01105     XA_DRAW_ENTER(TEXT("XaDrawOld_SetInvertedDIBitmap"), s_pContext);
01106     INT32 nRetVal =
01107         XaDraw_SetInvertedDIBitmap( s_pContext,
01108                                                         BitmapInfo, Bitmap, Format16BPP);
01109     XA_DRAW_LEAVE(s_pContext);
01110     return nRetVal;
01111 }
01112 
01113 INT32 XaDrawOld_SetMatrix( pcGMATRIX Matrix )
01114 {
01115     XA_DRAW_ENTER(TEXT("XaDrawOld_SetMatrix"), s_pContext);
01116     INT32 nRetVal =
01117         XaDraw_SetMatrix(s_pContext, Matrix);
01118     XA_DRAW_LEAVE(s_pContext);
01119     return nRetVal;
01120 }
01121 
01122 INT32 XaDrawOld_MaxScale ( pcGMATRIX Matrix,pcRECT BBox )
01123 {
01124     XA_DRAW_ENTER(TEXT("XaDrawOld_MaxScale"), s_pContext);
01125     INT32 nRetVal =
01126         XaDraw_MaxScale(s_pContext, Matrix, BBox);
01127     XA_DRAW_LEAVE(s_pContext);
01128     return nRetVal;
01129 }
01130 
01131 INT32 XaDrawOld_GetMaxBitmapWidth()
01132 {
01133     XA_DRAW_ENTER(TEXT("XaDrawOld_GetMaxBitmapWidth"), NULL);
01134     INT32 nRetVal =
01135         XaDraw_GetMaxBitmapWidth();
01136     XA_DRAW_LEAVE(NULL);
01137     return nRetVal;
01138 }
01139 
01140 INT32 XaDrawOld_GetMaxBitmapDepth()
01141 {
01142     XA_DRAW_ENTER(TEXT("XaDrawOld_GetMaxBitmapDepth"), NULL);
01143     INT32 nRetVal =
01144         XaDraw_GetMaxBitmapDepth();
01145     XA_DRAW_LEAVE(NULL);
01146     return nRetVal;
01147 }
01148 
01149 INT32 XaDrawOld_SetAntialiasFlag( BOOL Flag )
01150 {
01151     XA_DRAW_ENTER(TEXT("XaDrawOld_SetAntialiasFlag"), s_pContext);
01152     INT32 nRetVal =
01153         XaDraw_SetAntialiasFlag(s_pContext, Flag);
01154     XA_DRAW_LEAVE(s_pContext);
01155     return nRetVal;
01156 }
01157 
01158 INT32 XaDrawOld_SetDashAdjustmentFlag( BOOL Flag )
01159 {
01160     XA_DRAW_ENTER(TEXT("XaDrawOld_SetDashAdjustmentFlag"), s_pContext);
01161     INT32 nRetVal =
01162         XaDraw_SetDashAdjustmentFlag(s_pContext, Flag);
01163     XA_DRAW_LEAVE(s_pContext);
01164     return nRetVal;
01165 }
01166 
01167 INT32 XaDrawOld_SetHintingFlag( BOOL Flag )
01168 {
01169     XA_DRAW_ENTER(TEXT("XaDrawOld_SetHintingFlag"), s_pContext);
01170     INT32 nRetVal =
01171         XaDraw_SetHintingFlag(s_pContext, Flag);
01172     XA_DRAW_LEAVE(s_pContext);
01173     return nRetVal;
01174 }
01175 
01176 INT32 XaDrawOld_SetFlatness( UINT32 Flatness )
01177 {
01178     XA_DRAW_ENTER(TEXT("XaDrawOld_SetFlatness"), s_pContext);
01179     INT32 nRetVal =
01180         XaDraw_SetFlatness(s_pContext, Flatness);
01181     XA_DRAW_LEAVE(s_pContext);
01182     return nRetVal;
01183 }
01184 
01185 INT32 XaDrawOld_SetMiterLimit( UINT32 MiterLimit )
01186 {
01187     XA_DRAW_ENTER(TEXT("XaDrawOld_SetMiterLimit"), s_pContext);
01188     INT32 nRetVal =
01189         XaDraw_SetMiterLimit(s_pContext, MiterLimit);
01190     XA_DRAW_LEAVE(s_pContext);
01191     return nRetVal;
01192 }
01193 
01194 INT32 XaDrawOld_FillRectangle( pcRECT Rectangle )
01195 {
01196     XA_DRAW_ENTER(TEXT("XaDrawOld_FillRectangle"), s_pContext);
01197     INT32 nRetVal =
01198         XaDraw_FillRectangle(s_pContext, Rectangle);
01199     XA_DRAW_LEAVE(s_pContext);
01200     return nRetVal;
01201 }
01202 
01203 INT32 XaDrawOld_FillPoint( pcPOINT Point )
01204 {
01205     XA_DRAW_ENTER(TEXT("XaDrawOld_FillPoint"), s_pContext);
01206     INT32 nRetVal =
01207         XaDraw_FillPoint(s_pContext, Point);
01208     XA_DRAW_LEAVE(s_pContext);
01209     return nRetVal;
01210 }
01211 
01212 INT32 XaDrawOld_FillPath(
01213     pcPOINT Points,
01214     pcBYTE  Types,
01215     UINT32 Length,
01216     UINT32 Winding
01217 )
01218 {
01219     XA_DRAW_ENTER(TEXT("XaDrawOld_FillPath"), s_pContext);
01220     INT32 nRetVal =
01221         XaDraw_FillPath(s_pContext, Points, Types, Length, Winding);
01222     XA_DRAW_LEAVE(s_pContext);
01223     return nRetVal;
01224 }
01225 
01226 INT32 XaDrawOld_FillTriangle(
01227     pcPOINT PointA,
01228     pcPOINT PointB,
01229     pcPOINT PointC,
01230     DWORD Flags
01231 )
01232 {
01233     XA_DRAW_ENTER(TEXT("XaDrawOld_FillTriangle"), s_pContext);
01234     INT32 nRetVal =
01235         XaDraw_FillTriangle(s_pContext, PointA, PointB, PointC, Flags);
01236     XA_DRAW_LEAVE(s_pContext);
01237     return nRetVal;
01238 }
01239 
01240 INT32 XaDrawOld_HintPath(
01241     pPOINT Points,
01242     pcBYTE  Types,
01243     UINT32 Length,
01244     BOOL Close,
01245     UINT32 LineWidth
01246 )
01247 {
01248     XA_DRAW_ENTER(TEXT("XaDrawOld_HintPath"), s_pContext);
01249     INT32 nRetVal =
01250         XaDraw_HintPath(s_pContext, Points, Types, Length, Close, LineWidth);
01251     XA_DRAW_LEAVE(s_pContext);
01252     return nRetVal;
01253 }
01254 
01255 INT32 XaDrawOld_StrokePath(
01256     pcPOINT Points,
01257     pcBYTE  Types,
01258     UINT32 Length,
01259     BOOL Close,
01260     UINT32 LineWidth,
01261     DWORD LineCaps,
01262     DWORD LineJoin,
01263     pcDashType Dash
01264 )
01265 {
01266     XA_DRAW_ENTER(TEXT("XaDrawOld_StrokePath"), s_pContext);
01267     INT32 nRetVal =
01268         XaDraw_StrokePath(s_pContext, Points, Types, Length, Close,
01269                                                 LineWidth, LineCaps, LineJoin, Dash);
01270     XA_DRAW_LEAVE(s_pContext);
01271     return nRetVal;
01272 }
01273 
01274 INT32 XaDrawOld_StrokePathToPath(
01275     pcPOINT IPoints,
01276     pcBYTE  ITypes,
01277     UINT32 ILength,
01278     pPOINT OPoints,
01279     pBYTE  OTypes,
01280     UINT32 OLength,
01281     BOOL Close,
01282     UINT32 LineWidth,
01283     DWORD LineCaps,
01284     DWORD LineJoin,
01285     pcDashType Dash
01286 )
01287 {
01288     XA_DRAW_ENTER(TEXT("XaDrawOld_StrokePathToPath"), s_pContext);
01289     INT32 nRetVal =
01290         XaDraw_StrokePathToPath(s_pContext,
01291                                                     IPoints, ITypes, ILength,
01292                                                     OPoints, OTypes, OLength, Close,
01293                                                     LineWidth, LineCaps, LineJoin, Dash);
01294     XA_DRAW_LEAVE(s_pContext);
01295     return nRetVal;
01296 }
01297 
01298 INT32 XaDrawOld_CalcStrokeBBox(
01299     pcPOINT IPoints,
01300     pcBYTE  ITypes,
01301     UINT32 ILength,
01302     pRECT Rect,
01303     BOOL Close,
01304     UINT32 LineWidth,
01305     DWORD LineCaps,
01306     DWORD LineJoin,
01307     pcDashType Dash
01308 )
01309 {
01310     XA_DRAW_ENTER(TEXT("XaDrawOld_CalcStrokeBBox"), s_pContext);
01311     INT32 nRetVal =
01312         XaDraw_CalcStrokeBBox(  s_pContext,
01313                                                     IPoints, ITypes, ILength,
01314                                                     Rect, Close,
01315                                                     LineWidth, LineCaps, LineJoin, Dash);
01316     XA_DRAW_LEAVE(s_pContext);
01317     return nRetVal;
01318 }
01319 
01320 INT32 XaDrawOld_IsOverlap(
01321     pcPOINT Points,
01322     pcBYTE  Types,
01323     UINT32 Length,
01324     UINT32 Winding
01325 )
01326 {
01327     XA_DRAW_ENTER(TEXT("XaDrawOld_IsOverlap"), s_pContext);
01328     INT32 nRetVal =
01329         XaDraw_IsOverlap(   s_pContext,
01330                                                 Points, Types, Length, Winding);
01331     XA_DRAW_LEAVE(s_pContext);
01332     return nRetVal;
01333 }
01334 
01335 INT32 XaDrawOld_IsStrokeOverlap(
01336     pcPOINT Points,
01337     pcBYTE  Types,
01338     UINT32 Length,
01339     BOOL Close,
01340     UINT32 LineWidth,
01341     DWORD LineCaps,
01342     DWORD LineJoin,
01343     pcDashType Dash
01344 )
01345 {
01346     XA_DRAW_ENTER(TEXT("XaDrawOld_IsStrokeOverlap"), s_pContext);
01347     INT32 nRetVal =
01348         XaDraw_IsStrokeOverlap( s_pContext,
01349                                                     Points, Types, Length, Close,
01350                                                     LineWidth, LineCaps, LineJoin, Dash);
01351     XA_DRAW_LEAVE(s_pContext);
01352     return nRetVal;
01353 }
01354 
01355 INT32 XaDrawOld_GetStatistics(
01356     pcPOINT Points,
01357     pcBYTE  Types,
01358     UINT32 Length,
01359     UINT32 Winding,
01360     pSTATISTICS Stats
01361 )
01362 {
01363     XA_DRAW_ENTER(TEXT("XaDrawOld_GetStatistics"), s_pContext);
01364     INT32 nRetVal =
01365         XaDraw_GetStatistics(   s_pContext,
01366                                                     Points, Types, Length,
01367                                                     Winding, Stats);
01368     XA_DRAW_LEAVE(s_pContext);
01369     return nRetVal;
01370 }
01371 
01372 INT32 XaDrawOld_MakeRegion(
01373     pcPOINT Points,
01374     pcBYTE  Types,
01375     UINT32 Length,
01376     UINT32 Winding,
01377     pREGION ORegion,
01378     UINT32 OLength
01379 )
01380 {
01381     XA_DRAW_ENTER(TEXT("XaDrawOld_MakeRegion"), s_pContext);
01382     INT32 nRetVal =
01383         XaDraw_MakeRegion(  s_pContext,
01384                                                 Points, Types, Length,
01385                                                 Winding,
01386                                                 ORegion, OLength);
01387     XA_DRAW_LEAVE(s_pContext);
01388     return nRetVal;
01389 }
01390 
01391 INT32 XaDrawOld_MakeUnclippedRegion(
01392     pcPOINT Points,
01393     pcBYTE  Types,
01394     UINT32 Length,
01395     UINT32 Winding,
01396     pREGION ORegion,
01397     UINT32 OLength
01398 )
01399 {
01400     XA_DRAW_ENTER(TEXT("XaDrawOld_MakeUnclippedRegion"), s_pContext);
01401     INT32 nRetVal =
01402         XaDraw_MakeUnclippedRegion( s_pContext,
01403                                                         Points, Types, Length,
01404                                                         Winding,
01405                                                         ORegion, OLength);
01406     XA_DRAW_LEAVE(s_pContext);
01407     return nRetVal;
01408 }
01409 
01410 INT32 XaDrawOld_FillRegion(
01411     pcREGION Region,
01412     pcPOINT Offset
01413 )
01414 {
01415     XA_DRAW_ENTER(TEXT("XaDrawOld_FillRegion"), s_pContext);
01416     INT32 nRetVal =
01417         XaDraw_FillRegion(s_pContext, Region, Offset);
01418     XA_DRAW_LEAVE(s_pContext);
01419     return nRetVal;
01420 }
01421 
01422 INT32 XaDrawOld_ClipRectangle( pcRECT Rectangle )
01423 {
01424     XA_DRAW_ENTER(TEXT("XaDrawOld_ClipRectangle"), s_pContext);
01425     INT32 nRetVal =
01426         XaDraw_ClipRectangle(s_pContext, Rectangle);
01427     XA_DRAW_LEAVE(s_pContext);
01428     return nRetVal;
01429 }
01430 
01431 INT32 XaDrawOld_DeviceClipRectangle( pcRECT Rectangle )
01432 {
01433     XA_DRAW_ENTER(TEXT("XaDrawOld_DeviceClipRectangle"), s_pContext);
01434     INT32 nRetVal =
01435         XaDraw_DeviceClipRectangle(s_pContext, Rectangle);
01436     XA_DRAW_LEAVE(s_pContext);
01437     return nRetVal;
01438 }
01439 
01440 INT32 XaDrawOld_GetDeviceClipRectangle( pRECT Rectangle )
01441 {
01442     XA_DRAW_ENTER(TEXT("XaDrawOld_GetDeviceClipRectangle"), s_pContext);
01443     INT32 nRetVal =
01444         XaDraw_GetDeviceClipRectangle(s_pContext, Rectangle);
01445     XA_DRAW_LEAVE(s_pContext);
01446     return nRetVal;
01447 }
01448 
01449 INT32 XaDrawOld_ClipRegion( pcREGION Region )
01450 {
01451     XA_DRAW_ENTER(TEXT("XaDrawOld_ClipRegion"), s_pContext);
01452     INT32 nRetVal =
01453         XaDraw_ClipRegion(s_pContext, Region);
01454     XA_DRAW_LEAVE(s_pContext);
01455     return nRetVal;
01456 }
01457 
01458 pcREGION XaDrawOld_GetClipRegion()
01459 {
01460     XA_DRAW_ENTER(TEXT("XaDrawOld_GetClipRegion"), s_pContext);
01461     pcREGION pRetVal =
01462         XaDraw_GetClipRegion(s_pContext);
01463     XA_DRAW_LEAVE(s_pContext);
01464     return pRetVal;
01465 }
01466 
01467 INT32 XaDrawOld_CalcBBox(
01468     pcPOINT Points,
01469     pcBYTE  Types,
01470     UINT32 Length,
01471     pRECT Rect,
01472     BOOL Flatten
01473 )
01474 {
01475     XA_DRAW_ENTER(TEXT("XaDrawOld_CalcBBox"), s_pContext);
01476     INT32 nRetVal =
01477         XaDraw_CalcBBox(s_pContext, Points, Types, Length, Rect, Flatten);
01478     XA_DRAW_LEAVE(s_pContext);
01479     return nRetVal;
01480 }
01481 
01482 INT32 XaDrawOld_TransformPath(
01483     pcPOINT IPoints,
01484      pPOINT OPoints,
01485     UINT32 Length,
01486     pcGMATRIX Matrix
01487 )
01488 {
01489     XA_DRAW_ENTER(TEXT("XaDrawOld_TransformPath"), s_pContext);
01490     INT32 nRetVal =
01491         XaDraw_TransformPath(   s_pContext,
01492                                                     IPoints, OPoints,
01493                                                     Length, Matrix);
01494     XA_DRAW_LEAVE(s_pContext);
01495     return nRetVal;
01496 }
01497 
01498 INT32 XaDrawOld_ScrollBitmap( INT32 x,INT32 y )
01499 {
01500     XA_DRAW_ENTER(TEXT("XaDrawOld_ScrollBitmap"), s_pContext);
01501     INT32 nRetVal =
01502         XaDraw_ScrollBitmap(s_pContext, x, y);
01503     XA_DRAW_LEAVE(s_pContext);
01504     return nRetVal;
01505 }
01506 
01507 INT32 XaDrawOld_ClearChangedBBox()
01508 {
01509     XA_DRAW_ENTER(TEXT("XaDrawOld_ClearChangedBBox"), s_pContext);
01510     INT32 nRetVal =
01511         XaDraw_ClearChangedBBox(s_pContext);
01512     XA_DRAW_LEAVE(s_pContext);
01513     return nRetVal;
01514 }
01515 
01516 INT32 XaDrawOld_GetChangedBBox( pRECT Rectangle )
01517 {
01518     XA_DRAW_ENTER(TEXT("XaDrawOld_GetChangedBBox"), s_pContext);
01519     INT32 nRetVal =
01520         XaDraw_GetChangedBBox(s_pContext, Rectangle);
01521     XA_DRAW_LEAVE(s_pContext);
01522     return nRetVal;
01523 }
01524 
01525 INT32 XaDrawOld_SetChangedBBox( pcRECT Rectangle )
01526 {
01527     XA_DRAW_ENTER(TEXT("XaDrawOld_SetChangedBBox"), s_pContext);
01528     INT32 nRetVal =
01529         XaDraw_SetChangedBBox(s_pContext, Rectangle);
01530     XA_DRAW_LEAVE(s_pContext);
01531     return nRetVal;
01532 }
01533 
01534 INT32 XaDrawOld_SetBevelContrast ( UINT32 Contrast )
01535 {
01536     XA_DRAW_ENTER(TEXT("XaDrawOld_SetBevelContrast"), s_pContext);
01537     INT32 nRetVal =
01538         XaDraw_SetBevelContrast(s_pContext, Contrast);
01539     XA_DRAW_LEAVE(s_pContext);
01540     return nRetVal;
01541 }
01542 
01543 INT32 XaDrawOld_SetBevelLightness( UINT32 Contrast )
01544 {
01545     XA_DRAW_ENTER(TEXT("XaDrawOld_SetBevelLightness"), s_pContext);
01546     INT32 nRetVal =
01547         XaDraw_SetBevelLightness(s_pContext, Contrast);
01548     XA_DRAW_LEAVE(s_pContext);
01549     return nRetVal;
01550 }
01551 
01552 INT32 XaDrawOld_SetBevelDarkness ( UINT32 Contrast )
01553 {
01554     XA_DRAW_ENTER(TEXT("XaDrawOld_SetBevelDarkness"), s_pContext);
01555     INT32 nRetVal =
01556         XaDraw_SetBevelDarkness(s_pContext, Contrast);
01557     XA_DRAW_LEAVE(s_pContext);
01558     return nRetVal;
01559 }
01560 
01561 INT32 XaDrawOld_TranslateBevelValue( BYTE Index, BYTE Colour )
01562 {
01563     XA_DRAW_ENTER(TEXT("XaDrawOld_TranslateBevelValue"), s_pContext);
01564     INT32 nRetVal =
01565         XaDraw_TranslateBevelValue(s_pContext, Index, Colour);
01566     XA_DRAW_LEAVE(s_pContext);
01567     return nRetVal;
01568 }
01569 
01570 INT32 XaBitmapOld_PlotTile(
01571     pcBITMAPINFOHEADER BitmapInfo,
01572     pcBYTE Bitmap,
01573     DWORD Style,
01574     pcPOINT PointA,
01575     pcPOINT PointB,
01576     pcPOINT PointC,
01577     pcBGRT TranslationTable /* =0 */,
01578     pcBYTE   RedTranslationTable /* =0 */,
01579     pcBYTE GreenTranslationTable /* =0 */,
01580     pcBYTE  BlueTranslationTable /* =0 */,
01581     pcBYTE TransparencyTranslationTable /* =0 */
01582 )
01583 {
01584     XA_DRAW_ENTER(TEXT("XaBitmapOld_PlotTile"), s_pContext);
01585     INT32 nRetVal =
01586         XaBitmap_PlotTile(  s_pContext,
01587                                                 BitmapInfo, Bitmap, Style,
01588                                                 PointA, PointB, PointC,
01589                                                 TranslationTable,
01590                                                 RedTranslationTable,
01591                                                 GreenTranslationTable,
01592                                                 BlueTranslationTable,
01593                                                 TransparencyTranslationTable);
01594     XA_DRAW_LEAVE(s_pContext);
01595     return nRetVal;
01596 }
01597 
01598 INT32 XaBitmapOld_PlotTile4(
01599     pcBITMAPINFOHEADER BitmapInfo,
01600     pcBYTE Bitmap,
01601     DWORD Style,
01602     pcPOINT PointA,
01603     pcPOINT PointB,
01604     pcPOINT PointC,
01605     pcPOINT PointD,
01606     pcBGRT TranslationTable /* =0 */,
01607     pcBYTE   RedTranslationTable /* =0 */,
01608     pcBYTE GreenTranslationTable /* =0 */,
01609     pcBYTE  BlueTranslationTable /* =0 */,
01610     pcBYTE TransparencyTranslationTable /* =0 */
01611 )
01612 {
01613     XA_DRAW_ENTER(TEXT("XaBitmapOld_PlotTile4"), s_pContext);
01614     INT32 nRetVal =
01615         XaBitmap_PlotTile4( s_pContext,
01616                                                 BitmapInfo, Bitmap, Style,
01617                                                 PointA, PointB, PointC, PointD,
01618                                                 TranslationTable,
01619                                                 RedTranslationTable,
01620                                                 GreenTranslationTable,
01621                                                 BlueTranslationTable,
01622                                                 TransparencyTranslationTable);
01623     XA_DRAW_LEAVE(s_pContext);
01624     return nRetVal;
01625 }
01626 
01627 INT32 Xa3DOld_SetTruePerspectiveFlag( BOOL Flag )
01628 {
01629     XA_DRAW_ENTER(TEXT("Xa3DOld_SetTruePerspectiveFlag"), s_pContext);
01630     INT32 nRetVal =
01631         Xa3D_SetTruePerspectiveFlag(s_pContext, Flag);
01632     XA_DRAW_LEAVE(s_pContext);
01633     return nRetVal;
01634 }
01635 
01636 INT32 Xa3DOld_DefineView(
01637     INT32 nObserverDistance,
01638     COLORREF Background /* =0 */,
01639     pcBITMAPINFOHEADER pTextureInfo /* =NULL */,
01640     pcBYTE pTextureBitmap /* =NULL */,
01641     pcBGRT pTextureColours /* =NULL */,
01642     UINT32 uTextureXOffset /* =0 */,
01643     UINT32 uTextureYOffset /* =0 */,
01644     pcBYTE pOverlayBitmap /* =NULL */,
01645     pcBITMAPINFOHEADER pShadowInfo /* =NULL */,
01646     pcBYTE pShadowBitmap /* =NULL */,
01647     COLORREF ShadowColour /* =0 */,
01648     BOOL bTransparent /* =NULL */,
01649     BOOL bAlpha /* =NULL */,
01650     BOOL bTransparentTexture /* =NULL */,
01651     UINT32 uFade /* =0 */
01652 )
01653 {
01654     XA_DRAW_ENTER(TEXT("Xa3DOld_DefineView"), s_pContext);
01655     INT32 nRetVal =
01656         Xa3D_DefineView(s_pContext,
01657                                             nObserverDistance, Background,
01658                                             pTextureInfo, pTextureBitmap, pTextureColours,
01659                                             uTextureXOffset, uTextureYOffset,
01660                                             pOverlayBitmap,
01661                                             pShadowInfo, pShadowBitmap, ShadowColour,
01662                                             bTransparent, bAlpha, bTransparentTexture,
01663                                             uFade);
01664     XA_DRAW_LEAVE(s_pContext);
01665     return nRetVal;
01666 }
01667 
01668 INT32 Xa3DOld_AddTriangleToView(
01669     pcFVector3D pPointA, pcFVector3D pPointB, pcFVector3D pPointC,
01670     pcColour   pColourA, pcColour   pColourB, pcColour   pColourC,
01671     BOOL bForward
01672 )
01673 {
01674     XA_DRAW_ENTER(TEXT("Xa3DOld_AddTriangleToView"), s_pContext);
01675     INT32 nRetVal =
01676         Xa3D_AddTriangleToView( s_pContext,
01677                                                     pPointA, pPointB, pPointC,
01678                                                     pColourA, pColourB, pColourC,
01679                                                     bForward);
01680     XA_DRAW_LEAVE(s_pContext);
01681     return nRetVal;
01682 }
01683 
01684 INT32 Xa3DOld_AddFlatTriangleToView(
01685     pcFVector3D pPointA, pcFVector3D pPointB, pcFVector3D pPointC,
01686     pcColour pFlatColour,
01687     BOOL bForward
01688 )
01689 {
01690     XA_DRAW_ENTER(TEXT("Xa3DOld_AddFlatTriangleToView"), s_pContext);
01691     INT32 nRetVal =
01692         Xa3D_AddFlatTriangleToView( s_pContext,
01693                                                         pPointA, pPointB, pPointC,
01694                                                         pFlatColour, bForward);
01695     XA_DRAW_LEAVE(s_pContext);
01696     return nRetVal;
01697 }
01698 
01699 INT32 Xa3DOld_GetViewBBox( pRECT pBBox )
01700 {
01701     XA_DRAW_ENTER(TEXT("Xa3DOld_GetViewBBox"), s_pContext);
01702     INT32 nRetVal =
01703         Xa3D_GetViewBBox(s_pContext, pBBox);
01704     XA_DRAW_LEAVE(s_pContext);
01705     return nRetVal;
01706 }
01707 
01708 INT32 Xa3DOld_PlotView()
01709 {
01710     XA_DRAW_ENTER(TEXT("Xa3DOld_PlotView"), s_pContext);
01711     INT32 nRetVal =
01712         Xa3D_PlotView(s_pContext);
01713     XA_DRAW_LEAVE(s_pContext);
01714     return nRetVal;
01715 }

Generated on Sat Nov 10 03:47:23 2007 for Camelot by  doxygen 1.4.4