Fix warnings
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user