ui_notify tweaks

main
Dominik Madarász 2024-08-16 18:27:46 +02:00
parent 902e37b3e7
commit 2ba0f63716
3 changed files with 3 additions and 3 deletions

View File

@ -367023,7 +367023,7 @@ void ui_notify_render() {
struct ui_notify *n = array_back(ui_notifications);
static double timeout = 0;
timeout += 1/60.f; // window_delta(); // @fixme: use editor_time() instead
timeout += window_delta(); // @fixme: use editor_time() instead
ui_alpha_push( timeout >= n->timeout ? 1 - clampf(timeout - n->timeout,0,1) : 1 );

View File

@ -995,7 +995,7 @@ void ui_notify_render() {
struct ui_notify *n = array_back(ui_notifications);
static double timeout = 0;
timeout += 1/60.f; // window_delta(); // @fixme: use editor_time() instead
timeout += window_delta(); // @fixme: use editor_time() instead
ui_alpha_push( timeout >= n->timeout ? 1 - clampf(timeout - n->timeout,0,1) : 1 );

View File

@ -2203,7 +2203,7 @@ void ui_notify_render() {
struct ui_notify *n = array_back(ui_notifications);
static double timeout = 0;
timeout += 1/60.f; // window_delta(); // @fixme: use editor_time() instead
timeout += window_delta(); // @fixme: use editor_time() instead
ui_alpha_push( timeout >= n->timeout ? 1 - clampf(timeout - n->timeout,0,1) : 1 );