Test SDL Image

This commit is contained in:
Dusk 2022-07-16 15:33:02 +02:00
parent 7da3ce5592
commit cb171b7cf8
5 changed files with 4 additions and 4 deletions

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "lib/SDL.zig"] [submodule "lib/SDL.zig"]
path = lib/SDL.zig path = lib/SDL.zig
url = https://github.com/MasterQ32/SDL.zig.git url = ../SDL.zig

@ -1 +1 @@
Subproject commit 360e5ea16ae911ec30d72ec539c201bcb26ffa73 Subproject commit ab6ef00008f28f70a2dac89a949ad6685d8405ad

View File

@ -105,7 +105,6 @@ pub fn tick(self: *Self) State {
self.piece.timer_dropped.stop(); self.piece.timer_dropped.stop();
self.piece.dropped = true; self.piece.dropped = true;
} }
// Repeat Right // Repeat Right
// DAS // DAS

View File

@ -62,7 +62,7 @@ pub fn tick(self: *Self) State {
\\Tab: {s} \\Tab: {s}
\\Selection: {s} \\Selection: {s}
\\ \\
, .{tab.*.name, sel.*.name}); , .{ tab.*.name, sel.*.name });
return self.state; return self.state;
} }

View File

@ -36,6 +36,7 @@ pub fn main() !void {
var current_state: State = main_menu.state; var current_state: State = main_menu.state;
_ = SDL.SDL_SetRenderDrawBlendMode(renderer, SDL.SDL_BLENDMODE_BLEND); _ = SDL.SDL_SetRenderDrawBlendMode(renderer, SDL.SDL_BLENDMODE_BLEND);
_ = SDL.IMG_Init(SDL.IMG_INIT_JPG);
mainLoop: while (true) { mainLoop: while (true) {
var ev: SDL.SDL_Event = undefined; var ev: SDL.SDL_Event = undefined;