Skip to content

Commit

Permalink
make window centered
Browse files Browse the repository at this point in the history
  • Loading branch information
MESYETI committed Nov 12, 2023
1 parent d2fec17 commit 1099be5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Binary file added disk.bin
Binary file not shown.
3 changes: 2 additions & 1 deletion source/display.d
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class Display {
}

window = SDL_CreateWindow(
toStringz("YETI-16"), 0, 0, 640, 400, SDL_WINDOW_RESIZABLE
toStringz("YETI-16"), SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
640, 400, SDL_WINDOW_RESIZABLE
);

if (window is null) {
Expand Down
11 changes: 11 additions & 0 deletions test.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
lda bs 0x100000
lda ds 1029
set a 0
set c 3200
setl a
lda ds 1029
set a 65
wrb ds a

end:
jmpb end

0 comments on commit 1099be5

Please sign in to comment.