Opened 4 years ago

Last modified 4 years ago

#1166 new defect/bug

winCE onscreen icons far too small. no response to w="nn" h="mm"

Reported by: hyperentang.wordpress.com Owned by: KaZeR
Priority: minor Milestone: version 0.5.1
Component: core Version: git master
Severity: normal Keywords: winCE, OSD, dimension, portability
Cc: sebastian.leske@…

Description (last modified by usul)

svn-5643 although this happened earlier.

<osd enabled="yes" type="button" x="-50" y="-90" w="30%" h="30%" command="zoom_in()" src="zoom_in.png"/>

is my current test in navit.xml.

The w and h parameters have no effect. The (+) icon used to be a reasonable size with a default setting: neither w or h specified. Now the icon is tiny so barely visible. Which makes navit pretty much useless :-)

Same with the (-) zoom_out.png icon.

I see that there is a new section with name='Settings Layouts' in navit.xml which I have yet to explore. Perhaps that is relevant?

Change History (8)

comment:1 Changed 4 years ago by usul

  • Description modified (diff)
  • Keywords OSD dimension portability added
  • Milestone set to version 0.5.1
  • Priority changed from major to minor

Is this just about % dimension params? Or that width doesn't work at all?

I think we have already a ticket for the relative width bug, I will try to find it again...

comment:2 Changed 4 years ago by hyperentang.wordpress.com

No, the problem is not just with %/relative values.

I tested with w="30", h="30" and also with w="100" & h="100". No change: still a tiny icon hardly visible when viewed from a distance as when driving.

comment:3 Changed 4 years ago by hyperentang.wordpress.com

There is a very simple work around: change

src="zoom_in.png" to (say) src="zoom_in_48_48.png".

Maybe the bug is in the documentation for winCE? I would have done this much earlier if I had not been expecting the w and h parameters to work. Or maybe they should?

ael

comment:4 Changed 4 years ago by sleske

That probably means your Navit package was built using the autotools build. With the autotools build, the PNG files without size specification are 8x8 pixels. So zoom_in.png will be 8x8, while zoom_in_48_48.png will be 48x48 pixels. The CMake builds use a default of 48 pixels, which is probably more reasonable.

The image handling code was changed a few times, so it may have worked earlier, but right now zoom_in.png will give you an 8x8 icon. So using src="zoom_in_48_48.png" is the right solution.

Of course this is still a bug, because Navit silently ignores the width/height setting. So please keep this ticket open. Maybe I'll find time to look into it.

comment:5 Changed 4 years ago by sleske

  • Cc sebastian.leske@… added

comment:6 Changed 4 years ago by usul

  • Severity set to normal

Not sure, but the Maemo build just offers 96x96 icons, but I want to be able to have bigger OSD (zoom buttons here) by zooming them. New ticket?

comment:7 Changed 4 years ago by tryagain

usul, if you're not satisfied with following explanation, please open another ticket.

Actually, solution might be as simple as specifying configuration time options to get needed prescaled image sizes.

BTW, image size on most platforms can be adjusted by adding _w_h suffix to image name. If needed prescaled image is missing, it will be scaled on the fly.

But on Maemo, you most probably use SDL graphics plugin. It does not support zooming images on the fly at all. SDL itself seems to be missing interlnal function to do that, but there are a few add-on libraries that implement it. I'm unsure which one (if any) is present on Maemo.

comment:8 Changed 4 years ago by tryagain

Default image sizes should be equal to sizes specified in svgs. The fix is applied with r5709. Keeping it the ticket open as suggeseted above

Note: See TracTickets for help on using tickets.