wxSTC begins to work on wxMac...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -284,9 +284,15 @@ bool SurfaceImpl::Initialised() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SurfaceImpl::Init() {
|
void SurfaceImpl::Init() {
|
||||||
|
#if 0
|
||||||
Release();
|
Release();
|
||||||
hdc = new wxMemoryDC();
|
hdc = new wxMemoryDC();
|
||||||
hdcOwned = true;
|
hdcOwned = true;
|
||||||
|
#else
|
||||||
|
// On Mac and GTK(?) the DC is not really valid until it has a bitmap
|
||||||
|
// selected into it. So instead of just creating the DC with no bitmap,
|
||||||
|
// go ahead and give it one.
|
||||||
|
InitPixMap(1,1,NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SurfaceImpl::Init(SurfaceID hdc_) {
|
void SurfaceImpl::Init(SurfaceID hdc_) {
|
||||||
|
@@ -284,9 +284,15 @@ bool SurfaceImpl::Initialised() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SurfaceImpl::Init() {
|
void SurfaceImpl::Init() {
|
||||||
|
#if 0
|
||||||
Release();
|
Release();
|
||||||
hdc = new wxMemoryDC();
|
hdc = new wxMemoryDC();
|
||||||
hdcOwned = true;
|
hdcOwned = true;
|
||||||
|
#else
|
||||||
|
// On Mac and GTK(?) the DC is not really valid until it has a bitmap
|
||||||
|
// selected into it. So instead of just creating the DC with no bitmap,
|
||||||
|
// go ahead and give it one.
|
||||||
|
InitPixMap(1,1,NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SurfaceImpl::Init(SurfaceID hdc_) {
|
void SurfaceImpl::Init(SurfaceID hdc_) {
|
||||||
|
Reference in New Issue
Block a user