Skip to content

Commit

Permalink
Fixed system calls for display functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed May 19, 2024
1 parent 7824bcd commit f1acd74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rishka_vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1016,13 +1016,13 @@ uint64_t RishkaVM::handleSyscall(uint64_t code) {
return RishkaSyscall::Display::screen_height(this);

case RISHKA_SC_DISPLAY_SCREEN_WIDTH:
return RishkaSyscall::Display::screen_height(this);
return RishkaSyscall::Display::screen_width(this);

case RISHKA_SC_DISPLAY_VIEWPORT_HEIGHT:
return RishkaSyscall::Display::viewport_height(this);

case RISHKA_SC_DISPLAY_VIEWPORT_WIDTH:
return RishkaSyscall::Display::viewport_height(this);
return RishkaSyscall::Display::viewport_width(this);

case RISHKA_SC_DISPLAY_SUPPORTED_COLORS:
return RishkaSyscall::Display::supported_colors(this);
Expand Down

0 comments on commit f1acd74

Please sign in to comment.