advsplash.cpp File Reference

(r1785/r1396)

#include "advsplash.h"
#include <wx/splash.h>

Go to the source code of this file.

Defines

#define wxSPLASH_TIMER_ID   9999

Functions

 IMPLEMENT_DYNAMIC_CLASS (wxAdvSplashScreen, wxFrame)
static void wxDrawSplashBitmap (wxDC &dc, const wxBitmap &bitmap, int WXUNUSED(x), int WXUNUSED(y))


Define Documentation

#define wxSPLASH_TIMER_ID   9999
 

Definition at line 22 of file advsplash.cpp.


Function Documentation

IMPLEMENT_DYNAMIC_CLASS wxAdvSplashScreen  ,
wxFrame 
 

static void wxDrawSplashBitmap wxDC &  dc,
const wxBitmap &  bitmap,
int   WXUNUSED(x),
int   WXUNUSED(y)
[static]
 

Definition at line 128 of file advsplash.cpp.

00129 {
00130 #if 0
00131     wxMemoryDC dcMem;
00132 
00133 #ifdef USE_PALETTE_IN_SPLASH
00134     bool hiColour = (wxDisplayDepth() >= 16) ;
00135 
00136     if (bitmap.GetPalette() && !hiColour)
00137     {
00138         dcMem.SetPalette(* bitmap.GetPalette());
00139     }
00140 #endif // USE_PALETTE_IN_SPLASH
00141 
00142     dcMem.SelectObject(bitmap);
00143     dc.Blit(0, 0, bitmap.GetWidth(), bitmap.GetHeight(), & dcMem, 0, 0);
00144     dcMem.SelectObject(wxNullBitmap);
00145 
00146 #ifdef USE_PALETTE_IN_SPLASH
00147     if (bitmap.GetPalette() && !hiColour)
00148     {
00149         dcMem.SetPalette(wxNullPalette);
00150     }
00151 #endif // USE_PALETTE_IN_SPLASH
00152 #endif
00153 
00154     dc.DrawBitmap(bitmap, 0, 0);
00155 
00156 }


Generated on Sat Nov 10 03:49:37 2007 for Camelot by  doxygen 1.4.4