changeset 454:3e92d8309933

core: inhibit -> mlk_inhibit
author David Demelier <markand@malikania.fr>
date Sat, 18 Feb 2023 20:58:16 +0100
parents 49e7024f5455
children c4f31658104d
files libmlk-core/mlk/core/game.c libmlk-core/mlk/core/game.h libmlk-core/mlk/core/inhibit.h
diffstat 3 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libmlk-core/mlk/core/game.c	Sat Feb 18 20:55:12 2023 +0100
+++ b/libmlk-core/mlk/core/game.c	Sat Feb 18 20:58:16 2023 +0100
@@ -77,21 +77,21 @@
 {
 	assert(ev);
 
-	if (*game.state && !(game.inhibit & INHIBIT_STATE_INPUT))
+	if (*game.state && !(game.inhibit & MLK_INHIBIT_STATE_INPUT))
 		state_handle(*game.state, ev);
 }
 
 void
 mlk_game_update(unsigned int ticks)
 {
-	if (*game.state && !(game.inhibit & INHIBIT_STATE_UPDATE))
+	if (*game.state && !(game.inhibit & MLK_INHIBIT_STATE_UPDATE))
 		state_update(*game.state, ticks);
 }
 
 void
 mlk_game_draw(void)
 {
-	if (*game.state && !(game.inhibit & INHIBIT_STATE_DRAW))
+	if (*game.state && !(game.inhibit & MLK_INHIBIT_STATE_DRAW))
 		state_draw(*game.state);
 }
 
--- a/libmlk-core/mlk/core/game.h	Sat Feb 18 20:55:12 2023 +0100
+++ b/libmlk-core/mlk/core/game.h	Sat Feb 18 20:58:16 2023 +0100
@@ -29,7 +29,7 @@
 union mlk_event;
 
 struct mlk_game {
-	enum inhibit inhibit;
+	enum mlk_inhibit inhibit;
 	struct state **states;
 	size_t statesz;
 	struct state **state;
--- a/libmlk-core/mlk/core/inhibit.h	Sat Feb 18 20:55:12 2023 +0100
+++ b/libmlk-core/mlk/core/inhibit.h	Sat Feb 18 20:58:16 2023 +0100
@@ -19,11 +19,11 @@
 #ifndef MLK_CORE_INHIBIT_H
 #define MLK_CORE_INHIBIT_H
 
-enum inhibit {
-	INHIBIT_NONE,
-	INHIBIT_STATE_INPUT        = (1 << 0),
-	INHIBIT_STATE_UPDATE       = (1 << 1),
-	INHIBIT_STATE_DRAW         = (1 << 2)
+enum mlk_inhibit {
+	MLK_INHIBIT_NONE,
+	MLK_INHIBIT_STATE_INPUT         = (1 << 0),
+	MLK_INHIBIT_STATE_UPDATE        = (1 << 1),
+	MLK_INHIBIT_STATE_DRAW          = (1 << 2)
 };
 
 #endif /* !MLK_CORE_INHIBIT_H */