Incorrect subgame icon size?

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Incorrect subgame icon size?

by Wuzzy » Sat Nov 01, 2014 14:30

Hi!
I guess the icon size of subgames is handled incorrectly.

I guess the intended icon size is 48px×48px, as this is the size used by the Minimal development test and a lot of other subgames.
However, I figured out that the actual icon size used in the main menu is 47px×46px.

To test it for yourself, I provided an example icon of size 48px×48px with vertical 1-pixel white black and white stripes. Create a dummy subgame and put this file into a folder called “icon.png” and start minetest. You will see the icon is slightly distorted. If you make a screenshot of this and check for the actual size of the icon as presented by Minetest, you will see the actual size of 47px×46px.

I guess it is better to change the presented size in the main menu then to keep the current (weird) size, because many subgames use 48px×48px.
Attachments
icon.png
icon.png (125 Bytes) Viewed 177 times
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Incorrect subgame icon size?

by rubenwardy » Sat Nov 01, 2014 16:54

Weird things happen with icons in the inventory, too. They are meant to be resized to 64px, vbut the pixels stretch slighrly and resize wrong.
 


Return to Minetest Problems

Who is online

Users browsing this forum: Bing [Bot] and 22 guests