Commit Graph

2356 Commits

Author SHA1 Message Date
Chris Young
49bd536c6e Move OS3 array to list into separate function 2016-01-26 23:49:24 +00:00
Chris Young
f3332a20d7 Don't read the values of gadgets which were not created. 2016-01-26 19:52:39 +00:00
Chris Young
04cbc08c57 Don't use ami_NewMinList as it potentially writes past the MinList structure on OS3.
Instead we use ami_AllocMinList and pointers.
2016-01-26 19:40:59 +00:00
Chris Young
520e81f98d Alloc specifying local charset on OS3 as we can't get this from Locale 2016-01-26 19:37:18 +00:00
Chris Young
9505b8e514 Make most of the prefs GUI display (and hopefully work) under OS3
page.gadget is not a public class in OS3
Some gadgets which will not work have been temporarily #ifdef'd for OS4 only
Some gadgets which are not relevant have been disabled to avoid random values being set
2016-01-26 19:28:07 +00:00
Chris Young
78dec4d515 Show warnings on OS3 with an EasyRequest 2016-01-26 00:10:11 +00:00
Chris Young
2c2dc0f2bc Bring OS3 about requester up on the correct screen 2016-01-25 19:14:04 +00:00
Chris Young
a7ab6c7484 Simple "about" requester for OS3 2016-01-25 19:12:54 +00:00
Chris Young
893df2ccf1 Revert "Plot local history background white instead of wholly transparent"
On second thoughts this was correct initially.

This reverts commit 1ea29c6aec.
2016-01-25 18:53:21 +00:00
Chris Young
6eb0bd4579 Remove unneeded pen list 2016-01-25 18:48:49 +00:00
Chris Young
1ea29c6aec Plot local history background white instead of wholly transparent 2016-01-25 18:43:43 +00:00
Chris Young
5c8dccd5f6 When forcing 32-bit render mode, don't create the BitMaps as friends of the screen BitMap.
This fixes a system freeze on OS4
2016-01-25 18:41:50 +00:00
Chris Young
beb6cebf1e conflict 2016-01-25 18:26:22 +00:00
Chris Young
09ac17955b Merge branch 'master' of git://git.netsurf-browser.org/netsurf into chris/fix-palmap-crash
Conflicts:
	amiga/bitmap.c
2016-01-25 18:25:26 +00:00
Chris Young
8d71c0ae9e track type of native bitmap 2016-01-25 00:29:08 +00:00
Chris Young
c0d031bf73 Make the palette-mapped state relate to the rendering layer rather than globally.
This means we can still render in 32-bit mode internally when the destination isn't the screen.
NB: bitmap_render is currently freezing when the screen is in palette-mapped mode (old bug, pre-dates this change), so for now we skip this routine in that scenario.
2016-01-25 00:01:55 +00:00
Chris Young
452d8ce512 Use itempools for storing our pen locks 2016-01-24 00:00:27 +00:00
Chris Young
e38a1f17f2 friend_bitmap should default to false as it causes problems 2016-01-23 15:15:35 +00:00
Chris Young
dc89a2b2cc Move the OS3 statusbar underneath all the scrollbars 2016-01-23 15:11:17 +00:00
Chris Young
97e9086c80 remove missing os3 include 2016-01-23 15:04:45 +00:00
Chris Young
8df392d11d Remove nulling of a function which does actually exist in OS3 gfx.lib 2016-01-23 14:59:22 +00:00
Chris Young
dacdea768c fix argb_to_rgba definition weirdness 2016-01-23 14:58:47 +00:00
Chris Young
a68be9d11a Clear remaining bitmap fields 2016-01-23 14:49:29 +00:00
Chris Young
da9bee4286 Add more appropriate readme for OS3 build 2016-01-23 12:48:24 +00:00
Chris Young
9e5bf6fb68 Don't free the deferred rects using FreeVec on exit as they're itempools 2016-01-23 12:11:33 +00:00
Chris Young
5b422a3ec9 Fix opening of SSL cert window 2016-01-23 00:17:16 +00:00
Chris Young
7e7ea09000 Allocate generic list objects using itempools
TODO: Allocate the attached structures also using itempools
2016-01-22 18:40:40 +00:00
Chris Young
f51b7780e3 Don't clear memory twice under OS3 2016-01-21 22:39:21 +00:00
Chris Young
5a58e844e4 Don't clear bitmap structure on allocation 2016-01-21 22:02:39 +00:00
Chris Young
b41685208f Revert "alloc bitmap structures using itempools"
This reverts commit 0cc19b10fc.

This caused memory leakage, as the memory pool is removed before the core has destroyed all the bitmaps.
2016-01-21 20:42:49 +00:00
Chris Young
0cc19b10fc alloc bitmap structures using itempools 2016-01-21 20:30:02 +00:00
Chris Young
7efd9a2c67 Remove unused Amiga async scheduler 2016-01-21 20:13:49 +00:00
Chris Young
7da516067d Use itempools for the scheduler 2016-01-21 19:23:10 +00:00
Chris Young
6d2a787380 Allocate deferred rectangles using itempools
On OS3 we use a normal memory pool instead
2016-01-21 00:08:49 +00:00
Chris Young
239f999936 Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2016-01-20 23:32:34 +00:00
Chris Young
1724e28350 Use a memory pool for deferred rects 2016-01-20 23:32:19 +00:00
Chris Young
750677795b Alloc font name on the stack 2016-01-20 22:51:05 +00:00
Chris Young
59ea187b74 Ensure the textattr flags field is clear
This fixes problems with inconsistent layouting on OS3
2016-01-18 00:20:45 +00:00
Chris Young
9c62993efd Don't expose the DPI-related variables 2016-01-18 00:02:52 +00:00
Chris Young
b3aa313e84 misc amiga fixes re font plotting 2016-01-17 23:40:50 +00:00
Chris Young
132be1eed2 OS3 build fixes 2016-01-16 19:37:39 +00:00
Chris Young
06b50d9bbd missing files 2016-01-16 11:44:03 +00:00
Chris Young
8c31752f3a Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2016-01-16 00:08:54 +00:00
Chris Young
46f181b348 More font-related tidy-up 2016-01-16 00:00:57 +00:00
Chris Young
f275267d6b fix incorrect type usage 2016-01-15 20:51:37 +00:00
Chris Young
6eac0b83ea Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2016-01-15 20:50:55 +00:00
Chris Young
20c176b578 git probs 2016-01-15 20:50:16 +00:00
Chris Young
652c02ef08 git probs 2016-01-15 20:48:55 +00:00
Chris Young
3ac1d78f41 Fix some incorrect type usage 2016-01-15 20:43:12 +00:00
Chris Young
673f3e6887 Fix some old and new GCC errors/warnings 2016-01-15 19:58:24 +00:00
Chris Young
6ad939b5a6 Make font engine selection bit more logical 2016-01-15 19:37:21 +00:00
Chris Young
6122517bf4 Only show context menu text selection options if there is text selected 2016-01-14 19:15:30 +00:00
Chris Young
30f992730e Re-instate the ability to do a web search for selected text 2016-01-14 19:09:16 +00:00
Chris Young
f5dc180105 Use layers.library for bitmap tiling on OS3
This solves the worst of the rendering problems on that platform.
2016-01-14 00:11:48 +00:00
Chris Young
bc8bf0e575 Fix the bitmap font layout a bit 2016-01-13 18:32:17 +00:00
Chris Young
1886aaf6af Cut/paste error 2016-01-11 21:04:10 +00:00
Chris Young
178dd6bbae Fix OS4 build errors/warnings 2016-01-11 20:12:14 +00:00
Chris Young
adccaadb57 More consistent naming for font cache elements 2016-01-11 20:05:15 +00:00
Chris Young
4f7e2563c1 Separate font cache code into a new file 2016-01-11 19:55:37 +00:00
Chris Young
469cd6dc67 Close the font when we finish with it 2016-01-11 19:16:38 +00:00
Chris Young
37e5bff188 Add a status gadget inside the window for OS3 2016-01-11 19:10:59 +00:00
Chris Young
bcdbb9e365 Use correct parameters 2016-01-10 12:52:51 +00:00
Chris Young
5fb63e19ab If the specified font won't open, use the fallback font for character 'A'.
This helps stop pages showing up blank when the default fonts are wrong.
2016-01-10 12:42:12 +00:00
Chris Young
4fd1fbf68c Revert "Set a unicode fallback to LetterGothic on OS3"
This reverts commit 3e71a538c3.

This is pointless because the fallback is picked up from the font scan, so we should get text on screen from some other font.
2016-01-10 12:28:49 +00:00
Chris Young
3e71a538c3 Set a unicode fallback to LetterGothic on OS3
This should ensure we get text on screen even if use_diskfont is disabled and a bitmap font is set.
2016-01-10 12:22:43 +00:00
Chris Young
54feabe845 Set some memory and speed options by default for OS3 2016-01-10 12:07:46 +00:00
Chris Young
81516b33c8 Set some sensible default bitmap fonts on OS3 when using diskfont 2016-01-09 18:10:43 +00:00
Chris Young
b54a1fe4cb Add missing menu image 2016-01-03 00:00:55 +00:00
Chris Young
35a97670ae Increase minimum stack as sometimes Duktape runs out 2016-01-02 23:59:45 +00:00
Chris Young
237ec692dd Fix OS3 build 2015-12-20 16:47:06 +00:00
Chris Young
d1c1392601 Add missing rawkey codes 2015-12-20 16:43:35 +00:00
Chris Young
3e852daaf4 Missing initialisation 2015-12-20 16:36:59 +00:00
Chris Young
d6c34b8039 Soak up -v so command line processing still works with logging enabled 2015-11-27 12:36:40 +00:00
Chris Young
d7907bfe4c Allow specifying location of the users directories on the commandline
Arg USERSDIR/K
2015-11-25 00:11:24 +00:00
Chris Young
80e14dce52 Move ReadArgs commandline processing earlier whilst leaving core commandline processing where it was previously 2015-11-24 23:58:54 +00:00
Chris Young
e27525123b Make an effort to free resources when a fatal error occurs during initialisation 2015-11-24 23:22:15 +00:00
Chris Young
fa87f197c2 Abort if we're on a write-protected volume
Partial fix for 2397
2015-11-24 20:57:40 +00:00
Chris Young
7733ece472 Remove the setting of mimetype in default tooltypes
NetSurf is a lot more liberal now in accepting files, so the mimetype guessing routines are sufficient without forcing CSS files to be recognised as text/css.  The ability to add a tooltype to troublesome files remains.
2015-11-24 20:35:18 +00:00
Chris Young
f7ebec7142 Added Amiga ToolTypes parser.
Initially this allows setting the location of the Users directory, and the current user's name.
2015-11-22 00:06:10 +00:00
Chris Young
5e24a802b0 Optimise for PPC 2015-11-17 23:24:34 +00:00
Chris Young
47fa0bf7a2 Faster hashing 2015-11-17 23:19:30 +00:00
Chris Young
af71481a5f Use a hash as the skiplist key 2015-11-17 18:50:14 +00:00
Chris Young
4c2d40b35e Import FNV-1a 2015-11-17 18:43:42 +00:00
Chris Young
c659e11585 Fix refresh of hotlist menu/toolbar when hotlist window is closed
This definitely used to work...!
2015-11-16 21:10:35 +00:00
Chris Young
6d474e74e6 Prettier hotlist toolbar 2015-11-16 21:05:01 +00:00
Chris Young
479b8acce8 Don't position the statusbar based on font height
The statusbar has a finite height because it is sitting in a window border which does not adjust with font size.
2015-11-16 19:01:13 +00:00
Chris Young
5ad337a7b5 Don't translate F8/F9/F10 into printable characters. 2015-11-16 00:16:52 +00:00
Chris Young
6fbe30c617 Improve the position of the status bar gadget at different font sizes 2015-11-15 17:00:01 +00:00
Chris Young
045b254c15 Add missing NSOPTS/M command line arg to documentation. 2015-11-15 14:13:37 +00:00
Chris Young
0feb291c2e Add F8/F9/F10 as shortcuts to the scale functionality 2015-11-15 14:07:25 +00:00
Chris Young
bf6d56c7fe Allow space bar to be used to page down 2015-11-15 13:52:55 +00:00
Chris Young
28be6d2d79 Don't try to write to an uninitialised file handle. 2015-11-15 01:27:29 +00:00
Chris Young
125f131714 Forcibly enable cut/copy/paste menu items until such a time as I can figure out why they are disabling at the wrong times. 2015-11-06 19:38:24 +00:00
Michael Drake
1bb7d295bb Make nsurl utf8 string conversion function consistent with nsurl API. 2015-10-25 09:03:20 +00:00
Chris Young
27adf07fb7 Update gtk frontend to new API 2015-10-24 15:12:57 +01:00
Chris Young
65b510fbc3 Rework IDN URL retrieval to return an nserror 2015-10-24 15:12:57 +01:00
Chris Young
dd38897a26 Enable Amiga frontend to show decoded IDNs subject to local charset restrictions.
TODO: Statusbar link text
2015-10-24 15:12:57 +01:00
Chris Young
410f6fdb9e Allow the popupmenu-based select menu to cascade into multiple sub-menus containing further items, when there are too many to fit on the screen in one column. 2015-09-07 17:41:24 +01:00
Chris Young
d137bda454 Move status bar gadget to the correct place on OS3
Still practically useless as it constantly overprints.
2015-09-06 09:33:00 +01:00
Chris Young
e5c34567dc Fix broken headers 2015-09-06 09:23:08 +01:00