1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

[#9292] Renamed Image.put_pixel() to set_pixel().

This commit is contained in:
ducdetronquito
2017-07-07 19:05:45 +02:00
parent 8b362b5009
commit 566655adc1
6 changed files with 17 additions and 17 deletions

View File

@@ -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);
}