Commit Graph

77 Commits

Author SHA1 Message Date
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
Vincent Sanders
2b0a5ef2e7 update framebuffer toolkit logging to use a ctagory 2017-09-07 16:57:58 +01:00
Vincent Sanders
3faaf00ca3 revert semantic patch change to framebuffer font tool 2017-09-07 16:47:45 +01:00
Vincent Sanders
b9bdc279f2 Update scheduler logging to use catagory 2017-09-07 15:30:08 +01:00
Vincent Sanders
75018632a9 Use coccinelle to change logging macro calls in c files
for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done

@@ expression E; @@
-LOG(E);
+NSLOG(netsurf, INFO, E);
@@ expression E, E1; @@
-LOG(E, E1);
+NSLOG(netsurf, INFO, E, E1);
@@ expression E, E1, E2; @@
-LOG(E, E1, E2);
+NSLOG(netsurf, INFO, E, E1, E2);
@@ expression E, E1, E2, E3; @@
-LOG(E, E1, E2, E3);
+NSLOG(netsurf, INFO, E, E1, E2, E3);
@@ expression E, E1, E2, E3, E4; @@
-LOG(E, E1, E2, E3, E4);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4);
@@ expression E, E1, E2, E3, E4, E5; @@
-LOG(E, E1, E2, E3, E4, E5);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5);
@@ expression E, E1, E2, E3, E4, E5, E6; @@
-LOG(E, E1, E2, E3, E4, E5, E6);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6);
@@ expression E, E1, E2, E3, E4, E5, E6, E7; @@
-LOG(E, E1, E2, E3, E4, E5, E6, E7);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
2017-09-06 18:45:27 +01:00
Michael Drake
d34b0726e3 Framebuffer: Ensure local history corewindow is fully initialised. 2017-06-11 09:53:31 +01:00
Michael Drake
92ecc77768 Core window: Ensure all front ends initialise drag_status. 2017-06-10 18:10:07 +01:00
Michael Drake
12a1d7c36e Framebuffer: Return on successful non-repeating bitmap plot. 2017-06-10 16:18:05 +01:00
Michael Drake
c06cfd9fae Framebuffer: Fix bitmap plotter return value.
Caused local history to give up after the first bitmap plot.
2017-06-10 16:11:49 +01:00
Vincent Sanders
4b9aaee6cd update framebuffer to have corewindow interface and use it for localhistory 2017-06-10 15:35:36 +01:00
Michael Drake
368b03bffb Local history: Pass clip rectangle around as struct. 2017-06-10 11:15:20 +01:00
Vincent Sanders
a696720cd6 Update framebuffer frontend for set_scroll API change 2017-04-26 22:24:29 +01:00
Vincent Sanders
796bb0f652 update framebuffer frontend to remove reformat API 2017-04-26 10:05:57 +01:00
Vincent Sanders
becd3863c4 Update framebuffer frontend to use invalidate window area API 2017-04-23 20:42:37 +01:00
Vincent Sanders
6741b6e287 clean up incorrect documentation comments from plotter API rework 2017-02-14 23:06:04 +00:00
Vincent Sanders
386951ecfc update framebuffer to new plotter API 2017-02-11 13:57:07 +00:00
Vincent Sanders
6075feb487 create netsurf inttypes header to have portable integer formatting macros 2017-01-21 14:20:55 +00:00
Vincent Sanders
7dab7cb43d move plot style header to netsurf include directory
move plotter style header and adjust all callers to use only what they
actually require.
2017-01-13 10:03:24 +00:00
Vincent Sanders
9be0f4ccaf fixup usage of directory creation macro in Makefiles 2017-01-07 13:21:25 +00:00