Skip to content

Fix changed default size of the touchscreen formspec #32

Open
@S-S-X

Description

@S-S-X

The default size of the formspec changed from width 13 and height 10 to width 10 and height 8

I did some testing, and this is actually a bug with the old touchscreens when real coordinates are enabled. They have always been 10 by 8, but because the real_coordinates element was not placed immediately after the size element, it caused the formspec to be bigger than it was supposed to be.

See here, the size before and after the rewrite is the same:

local fs = "size[10,8]"..

digistuff/touchscreen.lua

Lines 121 to 122 in a49e4dd

local width = tonumber(meta:get_string("width")) or 10
local height = tonumber(meta:get_string("height")) or 8

Originally posted by @OgelGames in #25 (comment)

This should be fixed (it is irrelevant if it was "bug" in original, behavior can probably be restored without reintroducing invalid use of real_coordinates).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions