summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/macros.h4
-rw-r--r--include/z64view.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/macros.h b/include/macros.h
index c5264ba6a..343484028 100644
--- a/include/macros.h
+++ b/include/macros.h
@@ -105,12 +105,12 @@
#define LOG_FLOAT(exp, value, file, line) LOG(exp, value, "%f", file, line)
#define SET_NEXT_GAMESTATE(curState, newInit, newStruct) \
- do { \
+ if (1) { \
GameState* state = curState; \
\
(state)->init = newInit; \
(state)->size = sizeof(newStruct); \
- } while (0)
+ } (void)0
#if DEBUG_FEATURES
diff --git a/include/z64view.h b/include/z64view.h
index 3eb3755a2..5661a2640 100644
--- a/include/z64view.h
+++ b/include/z64view.h
@@ -15,10 +15,10 @@ typedef struct Viewport {
#define SET_FULLSCREEN_VIEWPORT(view) \
{ \
Viewport viewport; \
- viewport.bottomY = SCREEN_HEIGHT; \
- viewport.rightX = SCREEN_WIDTH; \
viewport.topY = 0; \
+ viewport.bottomY = SCREEN_HEIGHT; \
viewport.leftX = 0; \
+ viewport.rightX = SCREEN_WIDTH; \
View_SetViewport(view, &viewport); \
} \
(void)0