Skip to content

Commit 3235e42

Browse files
Update ui_api.cpp
1. Deleted duplicate code in l_SetCursorPos
1 parent d617255 commit 3235e42

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ui_api.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,8 +1407,6 @@ static int l_SetCursorPos(lua_State* L)
14071407
ui->LAssert(L, lua_isnumber(L, 2), "SetCursorPos() argument 2: expected number, got %s", luaL_typename(L, 2));
14081408
int x = ui->renderer->VirtualUnmap((int)lua_tointeger(L, 1) * dpiScale);
14091409
int y = ui->renderer->VirtualUnmap((int)lua_tointeger(L, 2) * dpiScale);
1410-
int x = ui->renderer->VirtualUnmap((int)lua_tointeger(L, 1));
1411-
int y = ui->renderer->VirtualUnmap((int)lua_tointeger(L, 2));
14121410
ui->sys->video->SetRelativeCursor(x, y);
14131411
return 0;
14141412
}
@@ -2164,3 +2162,4 @@ int ui_main_c::InitAPI(lua_State* L)
21642162
return 0;
21652163
}
21662164

2165+

0 commit comments

Comments
 (0)