icon support moved to wxBitmap, allowing for fully transparent usage

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-05-16 16:23:13 +00:00
parent 513903c4f9
commit 3dec57adfd
20 changed files with 1273 additions and 808 deletions

View File

@@ -30,7 +30,11 @@
#endif
#include "penguin.h"
#ifdef __WXMAC__
#include <glu.h>
#else
#include <GL/glu.h>
#endif
#define VIEW_ASPECT 1.3
@@ -147,16 +151,9 @@ void TestGLCanvas::OnPaint( wxPaintEvent& event )
void TestGLCanvas::OnSize(wxSizeEvent& event)
{
int width, height;
GetClientSize(& width, & height);
#ifndef __WXMOTIF__
if (GetContext())
#endif
{
SetCurrent();
glViewport(0, 0, width, height);
}
// the viewport must be initialized this way, not glViewport
// this is also necessary to update the context on some platforms
wxGLCanvas::OnSize(event);
}
void TestGLCanvas::OnEraseBackground(wxEraseEvent& event)