Go to file
Eric Raijmakers 1f0ade29f0 Fix using mask colour even if there is no mask in wxImage::Paste
In case an image without alpha is pasted on top of an image with alpha,
the alpha blending gives wrong results. This is caused by the fact that
the final (if nothing has been pasted yet) pixel copying algorithm in
Paste() does not take into account whether the pasted image actually
uses a mask.

To fix this:

- Add the check for image.HasMask().
- In case there is no mask, simply copy the image via memcpy.
- Finally, update the alpha channel of the changed image (if present):
  whenever a pixel is copied, the alpha is set to fully opaque.

Closes https://github.com/wxWidgets/wxWidgets/pull/2065
2020-10-01 02:13:28 +02:00
.github Add a check for trailing whitespace and TABs 2020-09-28 03:24:44 +02:00
3rdparty Update Catch submodule to use correct ARM break instruction 2020-07-01 22:39:13 +02:00
art
build CMake: add missing test files 2020-09-29 03:30:15 +02:00
demos Merge branch 'misc-fixes' of https://github.com/MaartenBent/wxWidgets 2020-08-08 02:01:06 +02:00
distrib
docs Add beginning of the artwork paragraph 2020-09-29 03:46:23 +02:00
include Implement new coordinates conversion functions in wxDC 2020-09-27 11:45:19 +02:00
interface Fix typo in documentation 2020-09-27 13:58:01 +02:00
lib Link tiff library as shareable image on OpenVMS 2019-03-12 08:20:16 +01:00
locale Add beginning of Persian translations from Ali Asady 2020-07-17 16:02:38 +02:00
misc Fix broken MSW tags generation script 2020-08-14 15:55:41 +02:00
samples Merge branch 'grid-selected' 2020-08-31 14:55:56 +02:00
src Fix using mask colour even if there is no mask in wxImage::Paste 2020-10-01 02:13:28 +02:00
tests Fix using mask colour even if there is no mask in wxImage::Paste 2020-10-01 02:13:28 +02:00
utils Add EXEEXT to the wxrc versioned executable 2020-08-31 14:59:39 +02:00
.editorconfig
.gitattributes
.gitignore Remove redundant patterns from .gitignore 2020-04-21 22:39:07 +02:00
.gitmodules
.mailmap Use consistent name for Konstantin S. Matveyev in git log 2020-05-25 01:48:43 +02:00
.travis.yml Test building without 3.0 compatibility on Travis CI too 2020-09-01 15:07:31 +02:00
acinclude.m4 Remove obsolete wxUSE_IOSTREAMH option 2019-10-21 20:46:21 +02:00
aclocal.m4 Pass options needed by it to libtiff configure only 2020-07-18 16:59:48 +02:00
appveyor.yml Skip AppVeyor builds when GitHub workflows are modified 2020-09-28 02:56:55 +02:00
autoconf_inc.m4 Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
autogen.sh
CMakeLists.txt adapt naming to macOS 2020-07-05 21:03:32 +02:00
config.guess Update various GNU configuration scripts to latest versions 2019-08-07 09:00:09 -07:00
config.sub Update various GNU configuration scripts to latest versions 2019-08-07 09:00:09 -07:00
configure Add library CFLAGS to CXXFLAGS, not CPPFLAGS 2020-09-18 10:02:05 -07:00
configure.in Don't override user-supplied CPPFLAGS 2020-09-18 10:08:24 -07:00
descrip.mms
install-sh
Makefile.in Add a class derived from GtkImage to support HiDPI bitmaps 2020-09-15 11:52:03 -07:00
mkinstalldirs
README-GIT.md Correct wx/msw/setup.h instructions in the documentation 2020-03-24 03:19:38 +01:00
README.md Drop gcc 3.4 from the requirements in the README 2020-07-19 13:14:18 +02:00
regen
setup.h_vms Add definition of wxUSE_GLCANVAS_EGL 2020-09-02 07:46:25 +02:00
setup.h.in Add EGL-based backend for wxGLCanvas 2020-09-01 15:03:30 +02:00
version-script.in
wx-config-inplace.in
wx-config.in Also mention --flavour in wx-config script 2020-08-18 15:47:33 +02:00
wxwidgets.props Really close the <Import> tag in the comment in wxwidgets.props 2020-05-25 19:12:53 +02:00
wxwin.m4

About

wxWidgets is a free and open source cross-platform C++ framework for writing advanced GUI applications using native controls.

wxWidgets Logo

wxWidgets allows you to write native-looking GUI applications for all the major desktop platforms and also helps with abstracting the differences in the non-GUI aspects between them. It is free for the use in both open source and commercial applications, comes with the full, easy to read and modify, source and extensive documentation and a collection of more than a hundred examples. You can learn more about wxWidgets at https://www.wxwidgets.org/ and read its documentation online at https://docs.wxwidgets.org/

Platforms

AppVeyor Travis OSS-Fuzz

This version of wxWidgets supports the following primary platforms:

  • Windows XP, Vista, 7, 8 and 10 (32/64 bits).
  • Most Unix variants using the GTK+ toolkit (version 2.6 or newer or 3.x).
  • macOS (10.10 or newer) using Cocoa under both amd64 and ARM platforms.

Most popular C++ compilers are supported including but not limited to:

  • Microsoft Visual C++ 2003 or later (up to 2019).
  • g++ 4 or later, including MinGW/MinGW-64/TDM under Windows.
  • Clang under macOS and Linux.
  • Intel icc compiler.
  • Oracle (ex-Sun) CC.

Licence

wxWidgets licence is a modified version of LGPL explicitly allowing not distributing the sources of an application using the library even in the case of static linking.

Building

For building the library, please see platform-specific documentation under docs/<port> directory, e.g. here are the instructions for wxGTK, wxMSW and wxOSX.

If you're building the sources checked out from Git, and not from a released version, please see these additional Git-specific notes.

Further information

If you are looking for community support, you can get it from

Commercial support is also available.

Finally, keep in mind that wxWidgets is an open source project collaboratively developed by its users and your contributions to it are always welcome. Please check our guidelines if you'd like to do it.

Have fun!

The wxWidgets Team.