Vincent Sanders
5db541a6d7
Improve target setup in makefiles
...
split out HOST TARGET and SUBTARGET generation into separate file.
split out target(frontend) specific tool settings into separate files.
2021-01-17 20:06:24 +00:00
Vincent Sanders
7997182cc0
Improve the framebuffer docs a bit
2020-09-18 10:34:32 +01:00
Vincent Sanders
54e06e7d58
move all the build tools to utils
...
move the source and make rules of the convert image and font tools
to the utils directory. This puts all the rules for build tools together.
2020-06-22 22:45:10 +01:00
Michael Drake
a27f5d32cd
Framebuffer: Internal font: Fix SW and NW arrow directions.
2020-06-22 13:27:18 +01:00
Vincent Sanders
38bfbe9cf6
remove perl split-messages tool usage
2020-06-22 00:04:42 +01:00
Michael Drake
fcbc710ce5
Squash warnings: '%s' directive argument is NULL.
2020-05-22 10:39:40 +01:00
Michael Drake
ca29c3b512
Framebuffer: Make some log messages deep debug.
2020-03-12 17:21:28 +00:00
Michael Drake
79821cd9cf
Frontends: Delete maps resource links.
2020-02-24 15:02:12 +00:00
Michael Drake
a47270c93e
About fetches resources: Drop maps resource.
...
It had bitrotted.
2020-02-24 14:21:27 +00:00
Daniel Silverstone
8ca778197c
framebuffer: Use new enumerate feature of libnsfb
...
1. Select as default the most useful compiled in surface
2. If the selected surface is unavailable, report the valid
surface list to the user. Also do this if the user specifies
-f ? on the CLI.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 10:58:07 +00:00
Michael Drake
194dfad4a5
Core window: Constify the core_window handle through the getters.
2020-02-22 16:37:37 +00:00
Michael Drake
2277d69ba1
Framebuffer bitmap font: Add glyphs for http://wttr.in/
2019-11-30 12:24:43 +00:00
Vincent Sanders
dae0ff3d26
remove warning callback from miscelaneous function table
2019-11-11 16:59:28 +00:00
Vincent Sanders
4dc4d8b318
add miscellaneous event to browser window callback table
...
extend the browser window callback table with a miscallaneous event
entry. This is used to replace all browser window callbacks which
take no parameters.
This reduces the API surface from seven separate calls to a single
call with an enumeration which may be readily extended.
The initial implementation in the frontends simply calls the original
implementations to reduce scope for errors.
2019-08-20 00:16:52 +01:00
Vincent Sanders
f21c41a2e5
change browser_window_redraw to use unscaled coordinates
2019-08-04 11:25:35 +01:00
Michael Drake
3938d5340b
Corewindow: Sanitise scrolling API.
...
Now the core has a helper so that all the front ends don't need
to implement the scroll to show area API.
Now they simply have get and set scroll APIs.
2019-08-03 15:57:23 +01:00
Vincent Sanders
641f5fb072
make use of improved browser_window_set_scale API in frontends
2019-08-03 15:53:07 +01:00
Vincent Sanders
d4c01894c2
change browser_window_get_features to use unscaled coordinates
2019-08-03 14:29:06 +01:00
Vincent Sanders
0ebfff259f
change browser_window_mouse_track to use unscaled coordinates
2019-08-03 14:29:05 +01:00
Vincent Sanders
0a8ed41a1a
change browser_window_mouse_click to use unscaled coordinates
...
this means frontends no longer need to scale mouse click events thus
simplifying their implementation.
2019-08-03 14:29:05 +01:00
Michael Drake
404fc65771
Framebuffer: Remove bogus comment.
2019-08-03 11:07:04 +01:00
Michael Drake
3a4477413a
Framebuffer: Add keyboard controls for scaling.
2019-08-03 11:00:09 +01:00
Daniel Silverstone
7c2811f5f6
framebuffer/local_history: Scroll to cursor on open
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-02 21:01:46 +01:00
Vincent Sanders
552aab42e1
remove scaled parameter from get_dimensions
2019-08-02 12:26:20 +01:00
Vincent Sanders
5742762070
split browser and browser_window operations
2019-08-01 19:51:19 +01:00
Michael Forney
6a53b447e5
Declare global variables as extern in headers
...
Otherwise, each source file that includes the header will create a
new definition, which are usually merged together by the linker.
Multiple definitions of an object is not allowed in ISO C.
2019-06-30 09:52:06 +01:00
Vincent Sanders
f367b23d72
free language vector in framebuffer resource setup
2019-02-21 12:11:55 +00:00
Vincent Sanders
54371c28f0
make framebuffer use the language environment for the UI resources
2019-02-17 00:11:27 +00:00
Vincent Sanders
9952ef000c
fix case of framebuffer message install
2019-02-16 09:29:18 +00:00
Daniel Silverstone
29ce303eb0
Framebuffer: Add symlink to build messages resource
...
Since framebuffer lacks the language directories in its resources
currently, we need a symbolic link to the en/Messages built in
the top level resources directory in order that nsfb can run
without the Messages file having been installed previously.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-02-15 21:08:35 +00:00
Vincent Sanders
231f026e6a
Improve framebuffer install rule
2019-02-15 17:53:31 +00:00
Anthony J. Bentley
d1fa6a8ee1
fix feature flags for openbsd
2019-02-15 16:31:06 +00:00
Vincent Sanders
413929dad5
Use pkg-config for freetype2 if available else fallback to old script
2018-12-18 11:42:43 +00:00
Vincent Sanders
bd8991c2f6
fix framebuffer BUILD libpng flags on freebsd
2018-09-07 12:23:39 +01:00
Vincent Sanders
40cdf498b9
Change BUILD compiler target to cc
...
The use of gcc explicitly does not work on systems where the local
building system only has the clang compiler.
Framebuffer was the only user of the BUILD_CC target for local
tooling and its handling of flags was also improved.
2018-09-07 12:01:21 +01:00
Vincent Sanders
6ce6b62099
stop defining _XOPEN_SOURCE
...
This is necessary with some libc as it overrides _POSIX_C_SOURCE
and removes definitions of scandir etc.
2018-09-06 11:33:02 +01:00
Michael Drake
8332bf6b2a
Plotters: Remove width param from path plotter.
...
We now use the stroke_width in the plot_style.
2018-05-23 13:48:17 +01:00
Michael Drake
66493421e6
Plotters: Change stroke width in the plot_style_t to fixed point.
2018-05-23 13:04:19 +01:00
Michael Drake
a58d97a41a
Plotters: Add plot_style_fixed type, and use for font size.
2018-05-23 11:48:35 +01:00
Vincent Sanders
6cabd4cd62
remove spurious messages file from framebuffer install target
2018-05-22 13:04:09 +01:00
Daniel Silverstone
9b04d79e60
Treat the .c font file as a sentinel for the .h, reduces rebuilds of fonts in -j
2018-04-22 14:10:16 +01:00
Daniel Silverstone
c1e30c0c3a
Initial shuffle of stuff out of !NetSurf
2018-04-22 10:41:55 +01:00
Daniel Silverstone
5094a3fd04
Rework use of split-messages to clean up and use -z
2018-04-22 10:11:11 +01:00
Michael Drake
42f5bb6182
Framebuffer: Squash switch fall through warning.
2018-04-21 13:38:51 +01:00
Daniel Silverstone
5e52c6a233
Add missing dependency between font_internal and the generated fonts
2018-04-21 12:35:35 +01:00
Michael Drake
89baae16b4
Framebuffer: Squash fallthrough warnings in internal font handling.
2018-01-21 14:28:32 +00:00
Michael Drake
29e36cdf1a
Framebuffer: Tweak comment to avoid fallthrough warning.
2018-01-21 14:28:32 +00:00
Ashish Gupta
cbd23092d5
Handle HOME and END keys in framebuffer
2017-10-21 16:01:50 +01:00
Michael Drake
8e6cf1e1d4
Framebuffer: Don't create 0x0 bitmaps if content width is 0.
2017-10-13 10:28:42 +01:00
Daniel Silverstone
8123e65351
Finalise nslog layer properly in closedown
2017-09-10 14:22:05 +01:00