From 06f9083bdeb085b7b9de762fa029f6519e142dbe Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sun, 9 Jun 2024 21:52:14 +0200 Subject: Add support for zoom factor Allows zooming in and out of pages by changing the size of all elements, including font size, images and tables. The initial zoom is specified in the "zoom_factor" option of dillorc. Use the new shortcuts Ctrl+ and Ctrl- to adjust the zoom of the current page and Ctrl 0 to reset it to 100%. When a new tab or window is opened, the current zoom factor is inherited. Each tab retains its own zoom factor. Fixes: https://github.com/dillo-browser/dillo/issues/21 --- src/html.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/html.cc') diff --git a/src/html.cc b/src/html.cc index 944977b2..471a1afa 100644 --- a/src/html.cc +++ b/src/html.cc @@ -461,7 +461,7 @@ DilloHtml::DilloHtml(BrowserWindow *p_bw, const DilloUrl *url, DocType = DT_NONE; /* assume Tag Soup 0.0! :-) */ DocTypeVersion = 0.0f; - styleEngine = new StyleEngine (HT2LT (this), page_url, base_url); + styleEngine = new StyleEngine (HT2LT (this), page_url, base_url, bw->zoom); cssUrls = new misc::SimpleVector (1); -- cgit v1.2.3