Skip to content

Commit c22eb61

Browse files
authored
Fix initialization
1 parent e335646 commit c22eb61

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/main.cpp

+11-11
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ void Close(pntr_app* app) {
185185
pntr_app Main(int argc, char* argv[]) {
186186
(void)argc;
187187
(void)argv;
188-
return (pntr_app) {
189-
.width = 800,
190-
.height = 600,
191-
.title = "ChaiLove",
192-
.init = Init,
193-
.update = Update,
194-
.close = Close,
195-
.event = Event,
196-
.fps = 0,
197-
.extensions = "chai|chailove"
198-
};
188+
pntr_app app = { 0 };
189+
app.width = 800,
190+
app.height = 600,
191+
app.title = "ChaiLove",
192+
app.init = Init,
193+
app.update = Update,
194+
app.close = Close,
195+
app.event = Event,
196+
app.fps = 0,
197+
app.extensions = "chai|chailove";
198+
return app;
199199
}

0 commit comments

Comments
 (0)