Commit Graph

34 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
2973b041c7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-16 12:58:04 +00:00
Andrew Murray
fb21c50fb6 Restore original thread state 2024-05-20 07:42:28 +10:00
Andrew Murray
3062ec4dd2 Fix type errors 2024-05-16 22:55:03 +10:00
Yay295
b9307f08d1
remove unused variable 2024-04-23 12:02:25 -05:00
Yay295
e7398c7888 update PyTypeObject slot names
tp_print was renamed to tp_vectorcall_offset with Python 3.8, and tp_compare was renamed to tp_as_async with Python 3.5.
tp_size has always been tp_basicsize; I don't know why that one was wrong.
2023-07-02 00:52:08 -05:00
Andrew Murray
f67fcf131a If the clipboard fails to open on Windows, wait and try again 2023-05-08 11:58:05 +10:00
Andrew Murray
494a3bcf2b
Release buffer on error
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-03-06 10:00:51 +11:00
Andrew Murray
b970eb9e5d Added memoryview support to Dib.frombytes() 2023-03-04 17:18:59 +11:00
Hugo van Kemenade
826c98156c Remove unused listwindows functions for Windows/3.12 support 2023-02-11 16:36:52 +02:00
Andrew Murray
f2ee5d6697 Use METH_VARARGS flags 2021-05-11 20:16:44 +10:00
Andrew Murray
46b7e86bab Format with ClangFormat 2021-01-03 14:17:51 +11:00
Hugo van Kemenade
2b87ccae89
Merge pull request #5026 from radarhere/unused
Removed unused C methods
2020-11-18 14:46:36 +02:00
Andrew Murray
8593e17b05 Removed unused methods 2020-11-02 20:58:51 +11:00
nulano
26cfe04fea fix PY_SSIZE_T_CLEAN in display.c 2020-10-14 21:12:00 +01:00
Andrew Murray
7e4db0a80e Prefix other header includes 2020-09-22 13:33:05 +10:00
Axel Huebl
f79379ed7c Imaging.h: confusion with system
The file `libImaging/Imaging.h` gets installed flat on
Ubuntus into the public Python includes.

When building a newer version of Pillow from source and
hinting the Python includes "too early" in includes, e.g.
in package managers, this can confuse the two files and
pick up the external file over the internal one. With
different versions, this mismatch can lead to build errors,
e.g. undefined macros.

The most robust way to avoid this is to pre-fix the internal
include accordingly, so that the relative path to the including
file has to match as well.
2020-09-17 18:06:45 +10:00
Hugo van Kemenade
7b759e160a
Merge pull request #4615 from nulano/clipboard-png 2020-06-21 18:56:04 +03:00
Andrew Murray
c1d9931adc Added braces 2020-05-10 19:56:36 +10:00
nulano
1656edaf41 fix docs compliance for CF_HDROP 2020-05-09 10:44:19 +02:00
nulano
5728662c7f add support for CF_DIBV5, CF_HDROP, and 'PNG' in ImageGrab.grabclipboard() on win32 2020-05-09 09:40:58 +02:00
Andrew Murray
ae43af61da Replaced tabs with spaces 2020-05-01 22:08:57 +10:00
Hugo
dda6145fce Since Python 3.3 IOError and WindowsError have been merged into OSError 2020-04-10 12:57:29 +03:00
Andrew Murray
6473c237c0 Fixed typo 2020-03-24 19:52:27 +11:00
nulano
f9c74825a6 xcb screengrab fixes 2020-03-24 19:40:54 +11:00
nulano
3c39e6fcf6 xcb screengrab support 2020-03-24 19:29:44 +11:00
Hugo
af770a6c55 Drop support for EOL Python 2.7 2019-10-07 14:30:59 +03:00
nulano
ee5c134b33
Merge branch 'master' into dpi_fix 2019-09-27 09:11:01 +02:00
nulano
6a2d8f8da0 rename parameter, add note to docs 2019-09-20 17:35:08 +02:00
Andrew Murray
19426417ff Reverted unrelated change 2019-08-17 20:38:54 +10:00
nulano
fa6b80fddf add option to capture all monitors on Windows 2019-08-15 20:03:33 +10:00
Andrew Murray
d46f81afba Windows Screengrab DPI fix improvements (#2)
* Load User32 after possible return

* Removed unused setting of variable
2019-08-12 18:51:52 +10:00
nulano
cacbdc680c override Win10 dpi scaling in screengrab
(cherry picked from commit 45ead62d6431c8339613e8ced85b705c80a7fdc9)
2019-08-12 18:51:52 +10:00
Andrew Murray
70038bd71e Added option to include layered windows in ImageGrab.grab on Windows 2019-04-26 20:09:46 +10:00
wiredfool
0bb3f4fee9 source layout reorg 2017-12-28 14:49:47 +00:00