mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-29 19:20:28 +00:00
Checking x/y seems problematic with ncurses.
This commit is contained in:
parent
d55071d228
commit
0e1e21e619
@ -102,13 +102,9 @@ static inline void DrawCursor(IInput* input) {
|
||||
WINDOW* content = inputWindow->GetContent();
|
||||
if (content) {
|
||||
wtimeout(content, IDLE_TIMEOUT_MS);
|
||||
int currentX = 0, currentY = 0;
|
||||
getyx(content, currentY, currentX);
|
||||
const int targetY = 0;
|
||||
const int targetX = (int) input->Position();
|
||||
if (currentX != targetX || currentY != targetY) {
|
||||
wmove(content, targetY, targetX);
|
||||
}
|
||||
wmove(content, targetY, targetX);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user