Am Samstag, den 11.09.2010, 11:10 +0200 schrieb Michael Drake
> Screen DPI is assumed to be 90, unless the front end sets it differently.
> The value is stored in nscss_screen_dpi in LibCSS's fixed point format.
> In css/utils.c:
> /** Screen DPI in fixed point units: defaults to 90, which RISC OS uses */
> css_fixed nscss_screen_dpi = INTTOFIX(90);
OK, thanks for the info.
m0n0 <ole(a)monochrom.net> wrote:
> I expect them to be specified by CSS, but mostly not in pixels....
> probably in points or EM or something like that, but not in pixels. And
> NetSurf doesn't know anything about my screen DPI, so there is no way to
> calculate the pixel size, isn't it?
Screen DPI is assumed to be 90, unless the front end sets it differently.
The value is stored in nscss_screen_dpi in LibCSS's fixed point format.
/** Screen DPI in fixed point units: defaults to 90, which RISC OS uses */
css_fixed nscss_screen_dpi = INTTOFIX(90);
Michael Drake (tlsa) http://www.netsurf-browser.org/
Hello to the list...
I'm currently looking at the implementation of the plotters. One thing
that makes me curious is the fact that all the plotter functions are
not chained to any window.
But how does NetSurf plotter calls distinguish between the different
browser windows? I mean, for example I'm opening page 1 in the first
window, then I open another Page 2 in another window. NetSurf will
render them both at the same time, but how do I know if the call to the
plotter is for Window 1 oder Window 2?
Or... if NetSurf just renders one single window (the window on
top),... how would I tell netsurf which browser window is topped?
Greets and Thanks for reading,
On Fri, 03 Sep 2010 12:54:23 +0200, m0n0 wrote:
> I'm currently implementing mouse events and I'm a bit confused by the
> amounts of dragging states... :
> Esepecially I can't see the difference between BROWSER_MOUSE_DRAG_ON
> and BROWSER_MOUSE_HOLDING_1 ...
You need to keep both of them set throughout the drag. Note there is
a MOUSE_HOLDING_2 as well for the second button.
MOUSE_DRAG_1 only needs to be set once at the start of the drag
> How do I report that an dragging operation has ended, does Netsurf
> recognize this automatically if none of the dragging flags are set?
Hello to the list!
I'm currently implementing mouse events and I'm a bit confused by the
amounts of dragging states... :
Esepecially I can't see the difference between BROWSER_MOUSE_DRAG_ON
and BROWSER_MOUSE_HOLDING_1 ...
The comment for DRAG_ON says:
/* a drag operation was started and a mouse button is still pressed */
Isn't an drag operation ALWAYS in conjuction with an mouse button
still pressed? otherwise it wouldn't be an dragging operation, or is
Comment for MOUSE_HOLDING_1:
/* while button 1 drag is in progress */
To me this sounds this has to be reported when: a mouse button is
How do I report that an dragging operation has ended, does Netsurf
recognize this automatically if none of the dragging flags are set?
Thanks & Greets,