Minor code style improvement and image test fix

This commit is contained in:
cx384 2024-01-18 15:31:59 +01:00
parent 0ca8c018b0
commit 8c444baf8a
2 changed files with 1 additions and 9 deletions

View File

@ -209,14 +209,6 @@ minetest.register_chatcommand("zoomfov", {
-- Images
local hud_image_defs = {
{
type = "image",
position = {x=0.5, y=0.5},
scale = {x = 10, y = 10},
text = "crosshair.png",
alignment = {x=0, y=-0},
offset = {x=0, y=0},
},
{
type = "image",
position = {x=0.3, y=0.3},

View File

@ -818,7 +818,7 @@ void Hud::drawImage(const v2s32 &pos, const v2f &scale, const v2f &align, const
rect += pos + align_offset + v2s32(offset.X * m_scale_factor, offset.Y * m_scale_factor);
draw2DImageFilterScaled(driver, texture, rect,
core::rect<s32>(core::position2d<s32>(0,0), imgsize),
core::rect<s32>(core::position2d<s32>(0,0),imgsize),
NULL, colors, true);
}