Commit Graph

14609 Commits

Author SHA1 Message Date
Michael Drake
e9d1a1fa9d Include: Bitmap: Add API for setting core bitmap format. 2022-03-26 15:45:00 +00:00
Michael Drake
6011da798f Include: Bitmap: Document bitmap pixel alignment requirement. 2022-03-26 14:13:56 +00:00
Michael Drake
725d1c9911 Treeview: Change bitmap generation to per-pixel channel indexing.
This will be needed when the core bitmap layout is client controlled.
2022-03-25 20:18:13 +00:00
Michael Drake
7f6a00ad2b RISC OS: Include core bitmap header from RO bitmap header.
Squash warnings about enum declared inside parameter list.
2022-03-24 22:19:22 +00:00
Michael Drake
9892eefd0a RISC OS: Squash unused variable warning. 2022-03-24 22:17:48 +00:00
Michael Drake
002c3c1a7c Bitmap API: Clean up creation flags. 2022-03-24 18:09:28 +00:00
Michael Drake
c2d72d1e93 Include: Bitmap: Remove unused save callback. 2022-03-24 15:29:27 +00:00
Michael Drake
eca8c260a8 BeOS: Drop bitmap save callback entry; core doesn't use it. 2022-03-24 15:29:08 +00:00
Michael Drake
b0e61d1f32 Windows: Drop bitmap save callback entry; core doesn't use it. 2022-03-24 15:28:49 +00:00
Michael Drake
e104fd798b RISC OS: Drop bitmap save callback entry; core doesn't use it. 2022-03-24 15:28:36 +00:00
Michael Drake
8e57f2a2f5 Monkey: Drop bitmap save callback entry; core doesn't use it. 2022-03-24 15:28:22 +00:00
Michael Drake
ee874c7ea1 GTK: Drop bitmap save callback entry; core doesn't use it. 2022-03-24 15:27:55 +00:00
Michael Drake
9114068d3f Framebuffer: Drop bitmap save callback entry; core doesn't use it. 2022-03-24 15:27:33 +00:00
Michael Drake
1e9687196d Atari: Drop bitmap save callback entry; core doesn't use it. 2022-03-24 15:26:07 +00:00
Michael Drake
fca10f324e Amiga: Drop bitmap save callback entry; core doesn't use it. 2022-03-24 15:25:18 +00:00
Michael Drake
2fb5fcdda2 GUI: Bitmap save callback was never required. 2022-03-24 15:24:25 +00:00
Michael Drake
28c0e79624 Include: Bitmap: Modified flag isn't used. 2022-03-24 14:01:16 +00:00
Michael Drake
527cc33c7f Monkey: Bitmap: Modified flag is not used. 2022-03-24 13:59:57 +00:00
Michael Drake
09bd355a5c RISC OS: Bitmap modified flag is not used. 2022-03-24 13:58:22 +00:00
Michael Drake
14d265d502 Include: Bitmap: Fix comment typo. 2022-03-24 13:57:07 +00:00
Michael Drake
6f591aceaf Include: Bitmap: Drop get_bpp from bitmap operation table.
Core bitmaps have always been 32bpp.
2022-03-24 13:03:19 +00:00
Michael Drake
a65186f7a8 BeOS: Drop bitmap get bpp function. 2022-03-24 13:03:19 +00:00
Michael Drake
a9c0441725 Atari: Drop bitmap get bpp function. 2022-03-24 13:03:19 +00:00
Michael Drake
16346898d1 Amiga: Drop bitmap get bpp function. 2022-03-24 13:03:19 +00:00
Michael Drake
26cef7d444 GTK: Drop bitmap get bpp function. 2022-03-24 12:53:10 +00:00
Michael Drake
236e8612e0 Framebuffer: Drop bitmap get bpp function. 2022-03-24 12:50:01 +00:00
Michael Drake
26b189af67 Monkey: Drop bitmap get bpp function. 2022-03-24 12:47:31 +00:00
Michael Drake
521440df7c Windows: Drop bitmap get bpp function. 2022-03-24 12:26:52 +00:00
Michael Drake
648fc87c14 RISC OS: Drop bitmap get bpp function. 2022-03-24 12:21:22 +00:00
Michael Drake
1d9526d44d GUI: Bitmap bytes per pixel callback is not required now. 2022-03-24 12:10:09 +00:00
Michael Drake
a4cb24ed46 Image: ICO: Update for new libnsbmp API. 2022-03-24 12:01:53 +00:00
Michael Drake
b6238c6c5c Image: BMP: Update for new libnsbmp API. 2022-03-24 12:01:36 +00:00
Michael Drake
1dd3c80d9b PNG: Bytes per pixel is always 4. 2022-03-24 11:12:57 +00:00
Michael Drake
7c3382834e GIF: Update to new libnsgif API.
Set required colour component order.
2022-03-23 17:52:20 +00:00
Michael Drake
ae9047b1ed GIF: Tolerate errors during scan if at least one frame. 2022-03-03 19:03:29 +00:00
Michael Drake
2e9ef8feae GIF: Update to latest libnsgif API. 2022-02-26 14:55:13 +00:00
Chris Young
d92b269629 Amiga: Don't open/close dos.library ourselves on OS3
Suspect this is the cause of crash on exit
2022-01-26 11:04:26 +00:00
Michael Drake
729e56dccc GTK: Add support for word left/right keybindings. 2022-01-23 14:26:50 +00:00
Pranjal Kole
4fc78449ff textarea: always clear selection on NS_KEY_WORD_{LEFT,RIGHT}
This bug can be seen by selecting some text starting from the beginning
of a textarea (so that caret is 0) and then pressing the
NS_KEY_WORD_LEFT binding.

NS_KEY_WORD_LEFT was breaking early when caret was 0. So, to always
clear the selection, the clear selection code has been brought above the
break statement.

NS_KEY_WORD_RIGHT did not have such a break statement, so one has been
added for consistency, and because string operations are expensive.
2022-01-23 14:22:40 +00:00
Michael Drake
88d5ea8668 GTK: Add support for word delete left/right.
These are ctrl+delete and ctrl+backspace.
2022-01-22 19:44:05 +00:00
Pranjal Kole
76ede0f7d6 textarea: implement NS_KEY_DELETE_WORD_{LEFT,RIGHT}
NS_KEY_DELETE_WORD_{LEFT,RIGHT} have been added to
include/netsurf/keypress.h and implemented in desktop/textarea.c

An unsigned int, caret_copy, has been added since both of these require
a temporary variable to hold the original position of the caret.

The LEFT one deletes separators towards the left till it encounters a
non-separator and then deletes the non-separators until it encounters a
separator. The caret is moved towards the left by the number of
characters deleted.

The RIGHT one does the same towards the right, but the caret is kept at
its original position.

These are intended to be mapped to Ctrl+Backspace and Ctrl+Delete by
most frontends.

Additionally, some style and typo fixes have been made.
2022-01-22 19:39:26 +00:00
Chris Young
9f305e4c3b Amiga: Add ARexx scripts to play videos via YT
Credit: Chris Handley
2021-12-17 12:29:30 +00:00
Chris Young
4e6e024dd7 Update ca-bundle 2021-10-04 21:46:50 +01:00
Michael Drake
251cce29b7 CSS: Selection callbacks: Update to latest LibDOM API. 2021-07-05 14:59:10 +01:00
Chris Young
5a6bb39218 Revert "Amiga: do not force 32-bit bitmaps"
This reverts commit 793f514220.
2021-06-28 20:11:46 +01:00
Chris Young
793f514220 Amiga: do not force 32-bit bitmaps
This appears to be unnecessary
2021-06-28 19:38:15 +01:00
Chris Young
474fd81bf6 Amiga: report correct depth 2021-06-28 16:58:11 +01:00
Chris Young
d39ae4a102 AMIGA: Use RTG calls on OS3
Enabled for experimentation
2021-06-28 14:54:42 +01:00
Michael Drake
407e20578f RISC OS: GUI: Clean up alpha sprite support test. 2021-06-25 18:08:17 +01:00
Michael Drake
9f3d012650 RISC OS: Image: Tinct workaround: Use OS alpha sprite rendering.
If NetSurf is configured to use OS for image rendering, and the
OS supports Alpha sprites, avoid going via Tinct completely.

Going via Tinct loses the alpha channel.  However, with this
workaround, we lose Tinct's pretiling optimisation for tiling
tiny sprites.
2021-06-25 17:19:17 +01:00