mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Use more type safe interfaces
This commit is contained in:
parent
4fbd1d34b1
commit
ac620900ac
@ -142,8 +142,8 @@ String ClipboardImpl::getStringImpl()
|
||||
|
||||
const Clock clock;
|
||||
|
||||
// Wait for a response for up to 1000ms
|
||||
while (!m_requestResponded && (clock.getElapsedTime().asMilliseconds() < 1000))
|
||||
// Wait for a response for up to 1 second
|
||||
while (!m_requestResponded && (clock.getElapsedTime() < sf::seconds(1)))
|
||||
processEvents();
|
||||
|
||||
// If no response was received within the time period, clear our clipboard contents
|
||||
|
Loading…
Reference in New Issue
Block a user