Skip to content

Commit

Permalink
adjusted coordinate
Browse files Browse the repository at this point in the history
adjust coordinates used Menu_ID
  • Loading branch information
lostjared authored Sep 21, 2024
1 parent 6f59679 commit a93e0a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion system/src/dimension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ namespace mx {
tetris->setIcon(loadTexture(app, "images/tetrisicon.png"));
tetris->objects.push_back(std::make_unique<TetrisWindow>(app));
tetris_window = dynamic_cast<TetrisWindow *>(tetris->objects[0].get());
tetris_window->create(tetris, "Tetris", (app.width /2) - (300/2), 0, 300, 630);
tetris_window->create(tetris, "Tetris", (app.width /2) - (300/2), 10, 300, 630);
tetris->events.addWindow(tetris_window);
tetris_window->show(true);
tetris_window->setReload(true);
Expand Down
4 changes: 2 additions & 2 deletions system/src/mx_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ namespace mx {
}


int Menu::addHeader(const Menu_Header &h) {
Menu_ID Menu::addHeader(const Menu_Header &h) {
menu.push_back(h);
return menu.size()-1;
}

int Menu::addItem(int header, int id, const Menu_Item<menuCallback> &i) {
Menu_ID Menu::addItem(int header, int id, const Menu_Item<menuCallback> &i) {
menu[header].items.push_back(i);
menu[header].items.back().icon = id;
return menu[header].items.size()-1;
Expand Down

0 comments on commit a93e0a0

Please sign in to comment.