Some .tex tweaks; pngdemo fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-01-12 18:28:34 +00:00
parent f6fcbb63d0
commit 6be663cf0d
13 changed files with 104 additions and 97 deletions

View File

@@ -178,10 +178,10 @@ void MyCanvas::OnPaint(wxPaintEvent& WXUNUSED(event))
if ( g_TestBitmap && g_TestBitmap->Ok() )
{
wxMemoryDC memDC;
if ( g_TestBitmap->GetColourMap() )
if ( g_TestBitmap->GetPalette() )
{
memDC.SetPalette(* g_TestBitmap->GetColourMap());
dc.SetPalette(* g_TestBitmap->GetColourMap());
memDC.SetPalette(* g_TestBitmap->GetPalette());
dc.SetPalette(* g_TestBitmap->GetPalette());
}
memDC.SelectObject(* g_TestBitmap);