wxWidgets/tests/image
Vadim Zeitlin a053e71ee6 Fix lack of unsharing in wxImage::Clear()
Calling Clear() wrongly modified any other wxImage objects reusing the
same data.

Fix this by adding the missing call to AllocExclusive() to this function
and also add a check for the image validity which was missing there as
well ever since this function was added back in fc3762b5fc (add
wxImage::Clear (patch by troelsk); closes #10141, 2009-01-09).

Also add a unit test.

See #23553.

(cherry picked from commit 92664881fed59ffe3650886d6ea215e75d262981)
2023-05-27 23:27:10 +02:00
..
8bpp-colorsused-large.bmp Fix loading bitmaps with malformed biClrUsed field 2021-11-06 16:12:04 +01:00
8bpp-colorsused-negative.bmp Fix loading bitmaps with malformed biClrUsed field 2021-11-06 16:12:04 +01:00
bitfields.bmp Only read BMP pixel data from stream in LoadBMPData() 2022-06-08 23:49:18 +01:00
cross_bicubic_256x256.png
cross_bilinear_256x256.png
cross_box_average_256x256.png
cross_nearest_neighb_256x256.png
horse_bicubic_50x50.png
horse_bicubic_100x100.png
horse_bicubic_150x150.png
horse_bicubic_300x300.png
horse_bilinear_50x50.png
horse_bilinear_100x100.png
horse_bilinear_150x150.png
horse_bilinear_300x300.png
horse_box_average_50x50.png
horse_box_average_100x100.png
horse_box_average_150x150.png
horse_box_average_300x300.png
horse_grey_flipped.bmp
horse_grey.bmp
horse_rle4_flipped.bmp
horse_rle4.bmp
horse_rle8_flipped.bmp
horse_rle8.bmp
image.cpp Fix lack of unsharing in wxImage::Clear() 2023-05-27 23:27:10 +02:00
paste_input_background.png
paste_input_black.png Fix using mask colour even if there is no mask in wxImage::Paste 2020-10-01 02:13:28 +02:00
paste_input_overlay_transparent_border_opaque_square.png
paste_input_overlay_transparent_border_semitransparent_circle.png
paste_input_overlay_transparent_border_semitransparent_square.png
paste_result_background_plus_circle_plus_square.png
paste_result_background_plus_overlay_transparent_border_opaque_square.png
paste_result_background_plus_overlay_transparent_border_semitransparent_square.png
paste_result_no_background_square_over_circle.png
rawbmp.cpp Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
rle4-delta-320x240.bmp Fix loading of RLE bitmaps in wxBMPHandler 2021-11-18 15:37:03 +01:00
rle8-delta-320x240-expected.bmp Fix loading of RLE bitmaps in wxBMPHandler 2021-11-18 15:37:03 +01:00
rle8-delta-320x240.bmp Fix loading of RLE bitmaps in wxBMPHandler 2021-11-18 15:37:03 +01:00
toucan_bright_-0.259.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_dis_240.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_grey.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_hsv_0.538_-0.41_-0.259.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_hue_0.538.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_light_46.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_mono_255_255_255.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_sat_-0.41.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
width_height_32_bit_overflow.pgm Replace old Trac links with GitHub ones 2022-01-13 16:52:58 +01:00
width-times-height-overflow.bmp Avoid integer overflow when computing image data size in wxImage::Create() 2021-11-27 17:14:28 -08:00
wx.png Add tests of wxImageList 2021-01-12 18:22:03 +01:00