mirror of
https://github.com/labwc/labwc.git
synced 2026-02-17 22:05:30 -05:00
Add screen magnifier
This adds a screen magnifier which can be controlled with the `ZoomIn` / `ZoomOut` and `ToggleMagnify` actions. It scales up part of the rendered framebuffer so the magnification may end up looking blurry depending on the magnification scale. PR #1774
This commit is contained in:
parent
ad15c0474d
commit
8ba066a1a5
13 changed files with 473 additions and 1 deletions
|
|
@ -589,4 +589,23 @@
|
|||
<menu>
|
||||
<ignoreButtonReleasePeriod>250</ignoreButtonReleasePeriod>
|
||||
</menu>
|
||||
|
||||
<!--
|
||||
Magnifier settings
|
||||
'width' sets the width in pixels of the magnifier window.
|
||||
'height' sets the height in pixels of the magnifier window.
|
||||
'initScale' sets the initial magnification factor at boot.
|
||||
'increment' sets the amount by which the magnification factor
|
||||
changes when 'ZoomIn' or 'ZoomOut' are called.
|
||||
'useFilter' sets whether to use a bilinear filter on the magnified
|
||||
output or simply to take nearest pixel.
|
||||
-->
|
||||
<magnifier>
|
||||
<width>400</width>
|
||||
<height>400</height>
|
||||
<initScale>2.0</initScale>
|
||||
<increment>0.2</increment>
|
||||
<useFilter>true</useFilter>
|
||||
</magnifier>
|
||||
|
||||
</labwc_config>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue