Skip to content
Snippets Groups Projects
  • Kahrl's avatar
    3c4734d6
    Change mainmenu texture handling + small misc changes · 3c4734d6
    Kahrl authored
    Texture names must now be escaped in formspec elements image[],
    background[], image_button[], image_button_exit[].
    
    Instead of special-case handling of texture loading (and unloading
    which was missing) in guiFormSpecMenu.cpp, use the newly created
    ISimpleTextureSource interface which is a minimal subset of
    ITextureSource. There is an implementation of this interface
    used by GUIEngine (MenuTextureSource).
    
    Fix an off-by-one bug in unescape_string; it caused requests for a
    texture called "\0".
    3c4734d6
    History
    Change mainmenu texture handling + small misc changes
    Kahrl authored
    Texture names must now be escaped in formspec elements image[],
    background[], image_button[], image_button_exit[].
    
    Instead of special-case handling of texture loading (and unloading
    which was missing) in guiFormSpecMenu.cpp, use the newly created
    ISimpleTextureSource interface which is a minimal subset of
    ITextureSource. There is an implementation of this interface
    used by GUIEngine (MenuTextureSource).
    
    Fix an off-by-one bug in unescape_string; it caused requests for a
    texture called "\0".