mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Merge pull request #540 from tomgalvin594/convert_tabs
Changed tabs to spaces in various files
This commit is contained in:
commit
a8ba35171a
@ -68,7 +68,7 @@ m_library (NULL),
|
||||
m_face (NULL),
|
||||
m_streamRec(NULL),
|
||||
m_refCount (NULL),
|
||||
m_info ()
|
||||
m_info ()
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ Socket::Status TcpSocket::connect(const IpAddress& remoteAddress, unsigned short
|
||||
if (::connect(getHandle(), reinterpret_cast<sockaddr*>(&address), sizeof(address)) >= 0)
|
||||
{
|
||||
// We got instantly connected! (it may no happen a lot...)
|
||||
setBlocking(blocking);
|
||||
setBlocking(blocking);
|
||||
return Done;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ namespace
|
||||
LARGE_INTEGER getFrequency()
|
||||
{
|
||||
LARGE_INTEGER frequency;
|
||||
QueryPerformanceFrequency(&frequency);
|
||||
QueryPerformanceFrequency(&frequency);
|
||||
return frequency;
|
||||
}
|
||||
}
|
||||
|
@ -104,15 +104,15 @@ private :
|
||||
////////////////////////////////////////////////////////////
|
||||
// Member data
|
||||
////////////////////////////////////////////////////////////
|
||||
int m_file; ///< File descriptor of the joystick
|
||||
int m_file; ///< File descriptor of the joystick
|
||||
|
||||
report_desc_t m_desc; ///< USB report descriptor
|
||||
int m_id; ///< USB id
|
||||
report_desc_t m_desc; ///< USB report descriptor
|
||||
int m_id; ///< USB id
|
||||
|
||||
void *m_buffer; ///< USB HID buffer
|
||||
int m_length; ///< Buffer length
|
||||
void *m_buffer; ///< USB HID buffer
|
||||
int m_length; ///< Buffer length
|
||||
|
||||
JoystickState m_state; ///< Current state of the joystick
|
||||
JoystickState m_state; ///< Current state of the joystick
|
||||
};
|
||||
|
||||
} // namespace priv
|
||||
|
@ -138,7 +138,7 @@ bool JoystickImpl::isConnected(unsigned int index)
|
||||
char buffer[128];
|
||||
(void)read(notifyFd, buffer, sizeof(buffer));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Then check if the joystick is connected
|
||||
return plugged[index];
|
||||
|
@ -162,19 +162,19 @@ void WglContext::createContext(WglContext* shared, unsigned int bitsPerPixel, co
|
||||
int intAttributes[] =
|
||||
{
|
||||
WGL_DRAW_TO_WINDOW_ARB, GL_TRUE,
|
||||
WGL_SUPPORT_OPENGL_ARB, GL_TRUE,
|
||||
WGL_ACCELERATION_ARB, WGL_FULL_ACCELERATION_ARB,
|
||||
WGL_DOUBLE_BUFFER_ARB, GL_TRUE,
|
||||
WGL_SUPPORT_OPENGL_ARB, GL_TRUE,
|
||||
WGL_ACCELERATION_ARB, WGL_FULL_ACCELERATION_ARB,
|
||||
WGL_DOUBLE_BUFFER_ARB, GL_TRUE,
|
||||
WGL_SAMPLE_BUFFERS_ARB, (m_settings.antialiasingLevel ? GL_TRUE : GL_FALSE),
|
||||
WGL_SAMPLES_ARB, static_cast<int>(m_settings.antialiasingLevel),
|
||||
0, 0
|
||||
WGL_SAMPLES_ARB, static_cast<int>(m_settings.antialiasingLevel),
|
||||
0, 0
|
||||
};
|
||||
|
||||
// Let's check how many formats are supporting our requirements
|
||||
int formats[128];
|
||||
UINT nbFormats;
|
||||
float floatAttributes[] = {0, 0};
|
||||
bool isValid = wglChoosePixelFormatARB(m_deviceContext, intAttributes, floatAttributes, sizeof(formats) / sizeof(*formats), formats, &nbFormats) != 0;
|
||||
UINT nbFormats;
|
||||
float floatAttributes[] = {0, 0};
|
||||
bool isValid = wglChoosePixelFormatARB(m_deviceContext, intAttributes, floatAttributes, sizeof(formats) / sizeof(*formats), formats, &nbFormats) != 0;
|
||||
while ((!isValid || (nbFormats == 0)) && m_settings.antialiasingLevel > 0)
|
||||
{
|
||||
// Decrease the antialiasing level until we find a valid one
|
||||
|
Loading…
Reference in New Issue
Block a user