mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-10 05:36:22 +08:00
Fixed code style
Conflicts: src/lib/arch/win32/ArchPluginWindows.cpp
This commit is contained in:
committed by
Jerry (Xinyu Hou)
parent
88214a0d3c
commit
5a9cbc97e3
@@ -162,7 +162,7 @@ XWindowsEventQueueBuffer::waitForEvent(double dtimeout)
|
||||
// we want to give the cpu a chance s owe up this to 25ms
|
||||
#define TIMEOUT_DELAY 25
|
||||
|
||||
while( ((dtimeout < 0.0) || (remaining > 0)) && QLength(m_display)==0 && retval==0){
|
||||
while (((dtimeout < 0.0) || (remaining > 0)) && QLength(m_display)==0 && retval==0){
|
||||
#if HAVE_POLL
|
||||
retval = poll(pfds, 2, TIMEOUT_DELAY); //16ms = 60hz, but we make it > to play nicely with the cpu
|
||||
if (pfds[1].revents & POLLIN) {
|
||||
|
||||
Reference in New Issue
Block a user