Преглед на файлове

Fix scaling issue for texture button focus texture.

K. S. Ernest (iFire) Lee преди 6 години
родител
ревизия
1971c09e5e
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      scene/gui/texture_button.cpp

+ 1 - 2
scene/gui/texture_button.cpp

@@ -223,8 +223,7 @@ void TextureButton::_notification(int p_what) {
 			}
 			if (has_focus() && focused.is_valid()) {
 
-				Rect2 drect(Point2(), get_size());
-				draw_texture_rect(focused, drect, false);
+				draw_texture_rect(focused, _position_rect, false);
 			};
 		} break;
 	}