16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 15:59:18 +02:00

merge manul

This commit is contained in:
WLs50
2025-03-09 15:36:11 +01:00
parent a687f551a2
commit a5f6397eca
1211 changed files with 483542 additions and 58643 deletions

View File

@@ -81,14 +81,14 @@ void ui::scenerylist_panel::draw_scenery_image()
}
if (selected_scenery->image != null_handle) {
opengl_texture &tex = GfxRenderer->Texture(selected_scenery->image);
auto &tex = GfxRenderer->Texture(selected_scenery->image);
tex.create();
if (tex.is_ready) {
if (tex.get_is_ready()) {
float avail_width = ImGui::GetContentRegionAvailWidth();
float height = avail_width / tex.width() * tex.height();
float height = avail_width / tex.get_width() * tex.get_height();
ImGui::Image(reinterpret_cast<void *>(tex.id), ImVec2(avail_width, height), ImVec2(0, 1), ImVec2(1, 0));
ImGui::Image(reinterpret_cast<void *>(tex.get_id()), ImVec2(avail_width, height), ImVec2(0, 1), ImVec2(1, 0));
}
}
}