Fix warnings

This commit is contained in:
luboslenco
2025-12-16 11:19:07 +01:00
parent 7f16c8122e
commit 26906f5db6
35 changed files with 198 additions and 198 deletions
+1 -1
View File
@@ -1099,7 +1099,7 @@ function _t_to_struct(type) {
// type_t * -> struct type *
if (type.endsWith("_t *") && type != "string_t *") {
let type_short = strip(type, 4); // _t *
if (type_short.endsWith("_array")) { // tex_format_t_array -> i32_array
if (type_short.endsWith("_array")) { // gpu_texture_format_t_array -> i32_array
for (let e of enums) {
if (type_short.startsWith(e)) {
type_short = "i32_array";
+1 -1
View File
@@ -1121,7 +1121,7 @@ function _t_to_struct(type: string): string {
// type_t * -> struct type *
if (ends_with(type, "_t *") && type != "string_t *") {
let type_short: string = strip(type, 4); // _t *
if (ends_with(type_short, "_array")) { // tex_format_t_array -> i32_array
if (ends_with(type_short, "_array")) { // gpu_texture_format_t_array -> i32_array
for (let i: i32 = 0; i < enums.length; ++i) {
let e: string = enums[i];
if (starts_with(type_short, e)) {
+2 -2
View File
@@ -182,7 +182,7 @@ function render() {
storage.window_x = iron_window_x();
storage.window_y = iron_window_y();
if (ui.input_dx != 0 || ui.input_dy != 0) {
iron_mouse_set_cursor(cursor_t.ARROW);
iron_mouse_set_cursor(iron_cursor_t.ARROW);
}
ui_begin(ui);
@@ -362,7 +362,7 @@ function on_border_hover(handle: ui_handle_t, side: i32) {
return; // Right
}
iron_mouse_set_cursor(cursor_t.SIZEWE);
iron_mouse_set_cursor(iron_cursor_t.SIZEWE);
if (ui.input_started) {
resizing_sidebar = true;