diff options
| author | ducdetronquito | 2017-07-07 19:05:45 +0200 |
|---|---|---|
| committer | ducdetronquito | 2017-07-07 19:05:45 +0200 |
| commit | 566655adc1c1b25cb2cc7c905c899f78170264d8 (patch) | |
| tree | 12e9827b69516db38c045071debca40861ecf7d0 /editor/plugins/editor_preview_plugins.cpp | |
| parent | 8b362b50094ccd332c6ee3d0853a6b9b49f70253 (diff) | |
| download | godot-566655adc1c1b25cb2cc7c905c899f78170264d8.tar.gz godot-566655adc1c1b25cb2cc7c905c899f78170264d8.tar.zst godot-566655adc1c1b25cb2cc7c905c899f78170264d8.zip | |
[#9292] Renamed Image.put_pixel() to set_pixel().
Diffstat (limited to 'editor/plugins/editor_preview_plugins.cpp')
| -rw-r--r-- | editor/plugins/editor_preview_plugins.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/plugins/editor_preview_plugins.cpp b/editor/plugins/editor_preview_plugins.cpp index 11d804422..7f8581535 100644 --- a/editor/plugins/editor_preview_plugins.cpp +++ b/editor/plugins/editor_preview_plugins.cpp @@ -431,7 +431,7 @@ Ref<Texture> EditorScriptPreviewPlugin::generate(const RES &p_from) { for (int i = 0; i < thumbnail_size; i++) { for (int j = 0; j < thumbnail_size; j++) { - img->put_pixel(i, j, bg_color); + img->set_pixel(i, j, bg_color); } } @@ -469,8 +469,8 @@ Ref<Texture> EditorScriptPreviewPlugin::generate(const RES &p_from) { Color ul = color; ul.a *= 0.5; - img->put_pixel(col, line * 2, bg_color.blend(ul)); - img->put_pixel(col, line * 2 + 1, color); + img->set_pixel(col, line * 2, bg_color.blend(ul)); + img->set_pixel(col, line * 2 + 1, color); prev_is_text = _is_text_char(c); } |
