Commit Graph

269 Commits

Author SHA1 Message Date
David Capello
6c5b27db81 Fix crash/hang using WebSocket in a previously disconnected socket
This can happen using Pribambase extension when we close Aseprite in
some strange way (e.g. killing the process), and the connection is not
closed correctly. It looks like the Blender addon is in an invalid
state and the data cannot be sent any more, but without this patch
Aseprite just hangs/crashes if we retry sending data, but with this
fix we can receive/show that an error happened sending data.

Related to: https://github.com/machinezone/IXWebSocket/pull/481
2023-08-29 12:39:12 -03:00
David Capello
aeeef8e255 Add suppor for doc::Image row stride size > width size
This patch solves several problems introducing the possibility to
specify a row stride bigger than the width (visible pixels) on each
image row. Useful in case that we want to align the initial pixel
address of each row (if DOC_USE_ALIGNED_PIXELS is defined).

This allows us to use some SIMD intrinsics (e.g. SSE2) for some image
functions in the future (right now implemented only in the new
is_same_image_simd_templ() for is_same_image()).

Anyway to avoid breaking some existing code, by default we'll still
keep the old behavior: row stride bytes = width bytes (so
DOC_USE_ALIGNED_PIXELS is undefined).
2023-08-07 15:27:39 -03:00
Zephyr Lykos
2f6655f57e Fix compilation on GCC13
See: https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
Bug: https://bugs.gentoo.org/865117
Bug: https://bugs.gentoo.org/895616

Signed-off-by: Zephyr Lykos <self@mochaa.ws>
2023-06-29 14:19:43 -03:00
David Capello
9a915355c5 Update fmt library to 10.0.0 2023-05-15 18:54:46 -03:00
David Capello
1c6e583c87 [lua] Add require() function (fix aseprite/api#10)
This is the first attempt to finally implement the require() function
on Lua. The main problem was how to solve conflicts between plugins
that use the same library name. Here we separate each plugin like in a
namespace, so require(name) inside a plugin will save the module in
_LOADED["pluginName/libraryName"] to avoid conflicts with other
libraryName from other plugins.
2023-04-18 19:41:01 -03:00
David Capello
d3aac6a1cd Add support for .qoi file format (fix #3121) 2023-01-05 14:23:01 -03:00
David Capello
88594bfa0e Merge branch 'main' into beta 2022-09-28 16:20:03 -03:00
David Capello
eadef19924 Update submodules 2022-09-16 12:30:13 -03:00
David Capello
a471ac8425 Update laf/clip/fmt submodules 2022-09-15 12:29:52 -03:00
David Capello
207c1c518c Merge branch 'main' into beta 2022-08-02 19:08:36 -03:00
David Capello
ccb32562ad Link with libwebp from Skia if possible 2022-08-02 18:56:34 -03:00
David Capello
54fa702296 Merge branch 'main' into beta 2022-06-01 10:25:02 -03:00
David Capello
c84210fa74 Don't use expat for libarchive (we don't need support for xar files) 2022-05-31 16:51:00 -03:00
David Capello
77771b703b Merge branch 'main' into beta 2022-05-30 20:41:35 -03:00
David Capello
6277329176 Update harfbuzz module 2022-05-26 15:26:43 -03:00
David Capello
cbbb4f12fa Update pixman module 2022-05-26 11:31:36 -03:00
David Capello
e8f28575f1 Merge branch 'main' into beta 2022-05-09 19:52:57 -03:00
David Capello
e823ee37e9 Fix crash using built-in zlib functions from freetype
We must define FT_CONFIG_OPTION_SYSTEM_ZLIB to use zlib instead of the
built-in zlib functions in FreeType (which crash the program).
2022-05-09 15:40:34 -03:00
David Capello
5864e84d47 Fix freetype compilation including the correct dir for ftconfig.h for Unix-like systems 2022-05-09 13:06:41 -03:00
David Capello
ff397fe425 Update compilation instructions to new compilers and Skia-m102
The code is compatible with Skia-m96, so in the best case the update
of Skia is not mandatory yet.
2022-05-09 10:57:34 -03:00
David Capello
8d2863a58b Merge branch 'main' into beta 2022-05-05 09:57:29 -03:00
David Capello
ea47f6624f Update IXWebSocket module 2022-04-26 10:30:34 -03:00
David Capello
2a59076f49 Merge branch 'main' into beta 2022-04-25 11:45:31 -03:00
David Capello
ae7f340f7e Don't use system libb2 by default in libarchive (fix #3257) 2022-04-22 08:46:57 -03:00
David Capello
f489b7085a Merge branch 'main' into beta 2022-04-06 09:33:51 -03:00
David Capello
5ddf8c0d28 Fix json11 compilation with MSVC
Probably a cmake bug that doesn't detect some invalid flags with VS2022.
Reported here: https://gitlab.kitware.com/cmake/cmake/issues/23398
2022-04-06 09:31:39 -03:00
David Capello
49d279f84e Merge branch 'main' into beta 2022-04-06 00:30:08 -03:00
David Capello
7e2b7b6096 Fix json11 module on MSVC 2022-04-06 00:29:52 -03:00
David Capello
ab2cef1c29 Merge branch 'main' into beta 2022-04-06 00:00:44 -03:00
David Capello
693a5777e7 Update json11 module 2022-04-06 00:00:23 -03:00
David Capello
91c687b1e3 Merge branch 'main' into beta 2021-12-15 17:51:19 -03:00
David Capello
977994765c Normalize some cmake options from WITH_* to ENABLE_* 2021-12-15 17:47:44 -03:00
David Capello
2b57fcaa6c Merge branch 'main' into beta 2021-12-01 18:14:53 -03:00
David Capello
de768a020d Use Skia freetype & harfbuzz when LAF_BACKEND=skia 2021-12-01 18:14:18 -03:00
David Capello
704c32ca25 Merge branch 'main' into beta 2021-11-17 14:46:48 -03:00
David Capello
82d93a8697 Update build instructions for Skia m96 & Apple Silicon (#2451) 2021-11-17 12:36:21 -03:00
David Capello
f93b33f248 Migrate to Skia m96 API 2021-11-17 12:36:11 -03:00
David Capello
621bc209ac Merge branch 'main' into beta 2021-10-25 18:29:34 -03:00
David Capello
772acd0fac Use native SSL/TLS support on Windows & macOS for libcurl 2021-10-25 18:07:19 -03:00
David Capello
d077900fe5 Merge branch 'main' into beta 2021-10-13 10:15:39 -03:00
David Capello
93cb0d3b51 Try to compile libpng before libwebp 2021-10-13 08:36:25 -03:00
David Capello
a78d274ad6 Patch Lua to compare numbers and integers in v5.4.3 2021-10-12 19:39:45 -03:00
David Capello
212e9fbe6c New initial Lua debugger version (#1967)
Incomplete version of the Lua debugger.
Some available features:

* Break in next executed instruction
* Step in, over, out
* See & navigate stacktrace
* See local variables

Some missing features:

* Breakpoints
* Eval user expressions with local variables

The UX needs some improvement yet.
2021-10-12 16:52:14 -03:00
David Capello
db44eeb269 Merge branch 'main' into beta 2021-10-12 10:45:33 -03:00
David Capello
b9130b83f4 Merge branch 'interprocessing' 2021-10-07 19:38:23 -03:00
Martín Capello
bcb05d9b3e Disable curl executable build 2021-10-06 18:10:24 -03:00
Martín Capello
bf60bb8953 Replace the curl directory by a submodule 2021-10-06 16:06:40 -03:00
David Capello
b6d7c1e261 Avoid error running cmake when entering IXWebSocket subdirectory
I don't know why it fails, but it looks like the commands specified to
install the IXWebSocket library are problematic. (And anyway we don't
want to install the library after the compilation process.)
2021-10-04 18:07:28 -03:00
lampysprites
4354be1d7a Add CMake option to disable websockets 2021-10-03 12:40:29 +07:00
lampysprites
e6aeee6400 Add IXWEbSocket library 2021-09-30 13:13:43 +07:00