You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Remove redundant queue_redraw() & fix typo
This commit is contained in:
@@ -49,7 +49,7 @@ typedef Vector<uint8_t> (*SavePNGBufferFunc)(const Ref<Image> &p_img);
|
||||
typedef Error (*SaveJPGFunc)(const String &p_path, const Ref<Image> &p_img, float p_quality);
|
||||
typedef Vector<uint8_t> (*SaveJPGBufferFunc)(const Ref<Image> &p_img, float p_quality);
|
||||
|
||||
typedef Ref<Image> (*ImageMemLoadFunc)(const uint8_t *p_png, int p_size);
|
||||
typedef Ref<Image> (*ImageMemLoadFunc)(const uint8_t *p_data, int p_size);
|
||||
typedef Ref<Image> (*ScalableImageMemLoadFunc)(const uint8_t *p_data, int p_size, float p_scale);
|
||||
|
||||
typedef Error (*SaveWebPFunc)(const String &p_path, const Ref<Image> &p_img, const bool p_lossy, const float p_quality);
|
||||
|
||||
@@ -97,10 +97,10 @@ void ImageLoaderLibJPEGTurbo::get_recognized_extensions(List<String> *p_extensio
|
||||
p_extensions->push_back("jpeg");
|
||||
}
|
||||
|
||||
static Ref<Image> _jpeg_turbo_mem_loader_func(const uint8_t *p_png, int p_size) {
|
||||
static Ref<Image> _jpeg_turbo_mem_loader_func(const uint8_t *p_data, int p_size) {
|
||||
Ref<Image> img;
|
||||
img.instantiate();
|
||||
Error err = jpeg_turbo_load_image_from_buffer(img.ptr(), p_png, p_size);
|
||||
Error err = jpeg_turbo_load_image_from_buffer(img.ptr(), p_data, p_size);
|
||||
ERR_FAIL_COND_V(err, Ref<Image>());
|
||||
return img;
|
||||
}
|
||||
|
||||
@@ -537,7 +537,6 @@ void LineEdit::gui_input(const Ref<InputEvent> &p_event) {
|
||||
emit_signal(SNAME("editing_toggled"), true);
|
||||
return;
|
||||
}
|
||||
queue_redraw();
|
||||
|
||||
} else {
|
||||
if (selection.enabled && !pass && b->get_button_index() == MouseButton::LEFT && DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_CLIPBOARD_PRIMARY)) {
|
||||
|
||||
Reference in New Issue
Block a user