mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-14 16:45:54 +00:00
GUI2/Canvas: removed unused image_shape members
This commit is contained in:
parent
a6ae7c8f3b
commit
7f1bc41162
|
@ -253,8 +253,6 @@ image_shape::image_shape(const config& cfg, wfl::action_function_symbol_table& f
|
|||
, y_(cfg["y"])
|
||||
, w_(cfg["w"])
|
||||
, h_(cfg["h"])
|
||||
, src_clip_()
|
||||
, image_()
|
||||
, image_name_(cfg["name"])
|
||||
, resize_mode_(get_resize_mode(cfg["resize_mode"]))
|
||||
, mirror_(cfg.get_old_attribute("mirror", "vertical_mirror", "image"))
|
||||
|
@ -306,9 +304,6 @@ void image_shape::draw(wfl::map_formula_callable& variables)
|
|||
return;
|
||||
}
|
||||
|
||||
// TODO: highdpi - this is never used, why is it set?
|
||||
src_clip_ = {0, 0, tex.w(), tex.h()};
|
||||
|
||||
wfl::map_formula_callable local_variables(variables);
|
||||
local_variables.add("image_original_width", wfl::variant(tex.w()));
|
||||
local_variables.add("image_original_height", wfl::variant(tex.h()));
|
||||
|
|
|
@ -332,14 +332,6 @@ private:
|
|||
typed_formula<unsigned> w_; /**< The width of the image. */
|
||||
typed_formula<unsigned> h_; /**< The height of the image. */
|
||||
|
||||
// TODO: highdpi - none of these cached items are ever used. Why is this here?
|
||||
|
||||
/** Contains the size of the image. */
|
||||
SDL_Rect src_clip_;
|
||||
|
||||
/** The image is cached in this surface. */
|
||||
texture image_;
|
||||
|
||||
/**
|
||||
* Name of the image.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user