mirror of https://github.com/minetest/minetest.git
Minor code style improvement and image test fix
This commit is contained in:
parent
0ca8c018b0
commit
8c444baf8a
|
@ -209,14 +209,6 @@ minetest.register_chatcommand("zoomfov", {
|
||||||
-- Images
|
-- Images
|
||||||
|
|
||||||
local hud_image_defs = {
|
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",
|
type = "image",
|
||||||
position = {x=0.3, y=0.3},
|
position = {x=0.3, y=0.3},
|
||||||
|
|
|
@ -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);
|
rect += pos + align_offset + v2s32(offset.X * m_scale_factor, offset.Y * m_scale_factor);
|
||||||
|
|
||||||
draw2DImageFilterScaled(driver, texture, rect,
|
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);
|
NULL, colors, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue