aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/c_src
AgeCommit message (Collapse)Author
2019-02-18Merge branch 'dgud/wx/extend-functionality/OTP-15587' into maintDan Gudmundsson
* dgud/wx/extend-functionality/OTP-15587: Fix showModal crash on Mojave Add wxGCDC wx: Add wxDisplay wx: Change wxFONTWEIGHT enums Let wxwidgets check events
2019-01-25Fix showModal crash on MojaveDan Gudmundsson
Invoking wxDialog:showModal could cause a seg-fault on Mojave if invoked from inside event callback. Which could happen when wx dispatch commands inside send_event. Wx dispatches commands inside send_event because some events will not return to idle mode (on Windows) until mouse is released. These events are (at least) wxSize and wxMove according to previous commits. Solved by only dispatching commands for those events. Another solution might be to ifdef the code to only do it on windows or not do it on the Mac.
2019-01-23Include erlang-logo128.png in releaseJuan Facorro
2019-01-23Enable setting custom application icon for Mac OS X through environment variableJuan Facorro
2019-01-23Update to icon with better resolutionJuan Facorro
2018-12-13Add wxGCDCDan Gudmundsson
Been included in wxWidgets since 2.7.1, but not documented and have been missed in wx. Is documented in 3.0.0
2018-12-13wx: Add wxDisplayDan Gudmundsson
Have been around since 2.6 but undocumented, add it since it is useful in multi-display setup.
2018-12-13wx: Change wxFONTWEIGHT enumsDan Gudmundsson
They have changed in 3.1.2 make them non-consts.
2018-12-12Let wxwidgets check eventsDan Gudmundsson
Check events more often not just inside batches but also when X commands have been processed.
2018-12-06Don't try to wake up wx thread when not necessaryDan Gudmundsson
That kills performance on at least windows when a the load goes up and a lot of commands is sent to the driver.
2018-12-03Merge branch 'dgud/wx/mojave-crash/OTP-15426' into maintDan Gudmundsson
* dgud/wx/mojave-crash/OTP-15426: wx: Do not delay deletes of wxGraphicContext
2018-11-16wx: Do not delay deletes of wxGraphicContextDan Gudmundsson
Fixes crash on Mojave, where refresh events are sent early and invoked recursively the delete of wxGraphicContext was delayed until after callback returned causing the crash to happen.
2018-09-21Update copyright yearHenrik Nord
2018-07-03Replace for loop with strchrArtur Cygan
2018-07-03Clean unused wxe_driver callbacksArtur Cygan
2018-07-03Remove wx c_src compilation warning on DarwinArtur Cygan
2018-06-18Update copyright yearHenrik Nord
2018-04-19Merge branch 'dgud/wx/glcanvas-improvements'Dan Gudmundsson
* dgud/wx/glcanvas-improvements: Add new "constants" to wxGLCanvas
2018-04-04Add new "constants" to wxGLCanvasDan Gudmundsson
They can't be constants because the order differ between 3.0.3 and 3.1. So they must be looked up in runtime.
2018-04-03Add backwards compatibility for wxWidgets-3.1.1Dan Gudmundsson
wx did not build with wxWidgets-3.1.1 since they have removed wxGraphicsRenderer:CreatePen(wxPen). Get the pen info and create the pen from that in 3.1.1 as is done for wxGrahicsContext:CreatePen(wxPen).
2018-01-22wx: open_port doesn't allow 0 terminated strings anymoreDan Gudmundsson
Fix getenv usage. And remove set path it is automagically done by driver interface.
2017-10-17Correct io_vec handlingDan Gudmundsson
Can not depend on internal knowledge of binaries any more it changed and caused at least opengl to crash in OTP-20.1
2017-08-16Remove deprecation of non deprecated functionsDan Gudmundsson
Functions where missing and where without alternatives, and the functions are available in wxWidgets-3.0.*. So either I missed it or they where removed for a while in wxWidgets-2.9 branch, but that should not be used anywhere as it was only a development branch.
2017-08-16Update so that doxygen 1.8.11 can generate codeDan Gudmundsson
Fix some configurations so that it works with new doxygen and with complete install outside of /usr/include/wx...
2017-06-14Update copyright yearHans Nilsson
2017-05-24wx: Tune when to break command loop in driverDan Gudmundsson
Exit command loop less often too avoid expensive event checking while in batch mode.
2017-05-11wx: Fix builds on VS-2017Dan Gudmundsson
And while we at it recommend wxWidgets-3.0.3
2017-05-04Update copyright yearRaimo Niskanen
2017-05-02Merge branch 'dgud/wx/fixup-batch-break'Dan Gudmundsson
* dgud/wx/fixup-batch-break: Fixup batch break
2017-04-28Merge branch 'dgud/wx/pr/1425'Dan Gudmundsson
* dgud/wx/pr/1425: wxe_impl.cpp: pointer comparison fix
2017-04-28Fixup batch breakDan Gudmundsson
Batches was breaked to often, increase the test and break if batch is done (and queue empty).
2017-04-24wxe_impl.cpp: pointer comparison fixKenji Rikitake
* Fix ordered comparison between (void *) pointer and zero
2017-04-06Avoid livelock in driver when batching commandsDan Gudmundsson
With a bad timing in wx:batch() the driver could get stuck handling commands without ever checking for gui events. Avoid that by exiting loop after the driver have done cond_wait a couple of times.
2016-11-22wx: Do not dispatch commands after frequent eventsDan Gudmundsson
The user app may want to handle several mouse motion events before drawing new data for example.
2016-11-22Add option to send prebuilt binaries to multiDrawArraysDan Gudmundsson
2016-11-22Fix gl driver pointer errorDan Gudmundsson
For lists the pointer was not advanced as it should which caused following in-data (if any) to be wrong.
2016-10-07wx: Add wxWindow:getContentScaleFactorDan Gudmundsson
2016-09-29wx: add wxWindowDragAcceptFilesDan Gudmundsson
Enable window to handle drop file events.
2016-09-28wx: Add simple dropfiles supportDan Gudmundsson
Added wxDropFiles event
2016-06-21Request a larger stacksize for wx threadDan Gudmundsson
The default stacksize on Windows is 1MB which is not enough if you create many dialogs and callbacks recurse back to erlang. Increase the stacksize of 8MB which should be sufficent.
2016-05-30wx: Fix occasional seq fault after appliction stopsDan Gudmundsson
There seems to be a timeing dependent double delete when doing reference cleanup after wx:destroy(). wxGraphicsObjects can thus not be free'ed by wx in the cleanup phase. A guess is that the underlying rendering context deletes all graphics objects without careeing about wxWidgets reference counting.
2016-05-11wx: Fix driver command queueDan Gudmundsson
The command queue could still loose a cmd because the command was reused while still in (recursive) use, thus when deleting it after command was done a newly added command could be mistakenly deleted and not called. Root cause was that wxeFifo::Strip "deleted" to many cmds. Solve by differing deleted and executed, i.e. op= -1 cmd have been executed and op = -2 cmd have been executed and deleted.
2016-05-02Fix argv typesDan Gudmundsson
wxEntry is defined to take wxChar** and not char**
2016-04-28wx: Remove non implemented wxGauge functionsDan Gudmundsson
These functions have been removed from wxWidgets-3.1 and according to documentation have been noops anyway. So remove them to make wx build with wxWidgets-3.1 if wxWidgets is compiled with --enable-compat28
2016-04-22wx: Fix callback problemsDan Gudmundsson
Commands could be executed twice, if the command was dispatched from a callback and caused a recursive invocation of command loop. Solution is to mark op as -1 before calling wxWidgets. Also commands could be missed when idle processing was done inside while executing a recursive callback, solved be always resetting peak index after idle processing is done.
2016-04-13Merge branch 'henrik/update-copyrightyear'Henrik Nord
* henrik/update-copyrightyear: update copyright-year
2016-04-04wx: Fix wxListCtrl:hitTest arguments and delivered resultsDan Gudmundsson
May cause incompatibility for applications but the flags argument is out only in C++.
2016-03-15update copyright-yearHenrik Nord
2016-03-01wx: Use wrapper classes where possibleDan Gudmundsson
2016-02-29wx: Add wxWindow:SetTransparent and CanSetTransperantDan Gudmundsson
Available in at least 2.8.12 and later.