diff options
author | Dan Gudmundsson <[email protected]> | 2016-02-25 09:22:31 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2016-02-29 09:21:50 +0100 |
commit | 375a6d9b157aab42c0a4e866ff5933494a2ea081 (patch) | |
tree | 645eda588991eda2c8b5893f79039c7f0297efd6 /lib/wx/c_src/gen/wxe_funcs.cpp | |
parent | 349673e2ffaa0916890fa3e24205197e79e371cd (diff) | |
download | otp-375a6d9b157aab42c0a4e866ff5933494a2ea081.tar.gz otp-375a6d9b157aab42c0a4e866ff5933494a2ea081.tar.bz2 otp-375a6d9b157aab42c0a4e866ff5933494a2ea081.zip |
wx: Add wxWindow SetDoubleBuffered and IsDoubleBuffered from wxWidgets 3.0
This is really needed on windows to get rid of flickering when updating
some widgets. These functions are only available if 3.0 and not on mac
where everything is double buffered already.
Diffstat (limited to 'lib/wx/c_src/gen/wxe_funcs.cpp')
-rw-r--r-- | lib/wx/c_src/gen/wxe_funcs.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/wx/c_src/gen/wxe_funcs.cpp b/lib/wx/c_src/gen/wxe_funcs.cpp index b2830dbc63..772b3d9b22 100644 --- a/lib/wx/c_src/gen/wxe_funcs.cpp +++ b/lib/wx/c_src/gen/wxe_funcs.cpp @@ -1,7 +1,7 @@ /* * %CopyrightBegin% * - * Copyright Ericsson AB 2008-2015. All Rights Reserved. + * Copyright Ericsson AB 2008-2016. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1668,6 +1668,24 @@ case wxWindow_WarpPointer: { // wxWindow::WarpPointer This->WarpPointer(*x,*y); break; } +#if wxCHECK_VERSION(3,0,0) +case wxWindow_IsDoubleBuffered: { // wxWindow::IsDoubleBuffered + wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4; + if(!This) throw wxe_badarg(0); + bool Result = This->IsDoubleBuffered(); + rt.addBool(Result); + break; +} +#endif +#if wxCHECK_VERSION(3,0,0) && !defined(__WXMAC__) +case wxWindow_SetDoubleBuffered: { // wxWindow::SetDoubleBuffered + wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4; + bool * on = (bool *) bp; bp += 4; + if(!This) throw wxe_badarg(0); + This->SetDoubleBuffered(*on); + break; +} +#endif case wxTopLevelWindow_GetIcon: { // wxTopLevelWindow::GetIcon wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4; if(!This) throw wxe_badarg(0); |