Whitespace conversion - tabs to 4 spaces

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@487 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
nigels 2004-03-16 00:17:11 +00:00
parent 4e304b51b9
commit c233e0f5db
3 changed files with 28 additions and 28 deletions

View File

@ -173,11 +173,11 @@ void fgInitialize( const char* displayName )
wc.hIcon = LoadIcon( fgDisplay.Instance, _T("GLUT_ICON") ); wc.hIcon = LoadIcon( fgDisplay.Instance, _T("GLUT_ICON") );
#if TARGET_HOST_WIN32 #if TARGET_HOST_WIN32
wc.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW; wc.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
if (!wc.hIcon) if (!wc.hIcon)
wc.hIcon = LoadIcon( NULL, IDI_WINLOGO ); wc.hIcon = LoadIcon( NULL, IDI_WINLOGO );
#else //TARGET_HOST_WINCE #else //TARGET_HOST_WINCE
wc.style = CS_HREDRAW | CS_VREDRAW; wc.style = CS_HREDRAW | CS_VREDRAW;
#endif #endif
wc.hCursor = LoadCursor( NULL, IDC_ARROW ); wc.hCursor = LoadCursor( NULL, IDC_ARROW );

View File

@ -1285,8 +1285,8 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
ReleaseDC( window->Window.Handle, window->Window.Device ); ReleaseDC( window->Window.Handle, window->Window.Device );
#if TARGET_HOST_WINCE #if TARGET_HOST_WINCE
// Take over button handling // Take over button handling
wince_OpenInput(); wince_OpenInput();
#endif //TARGET_HOST_WINCE #endif //TARGET_HOST_WINCE
break; break;
@ -1708,27 +1708,27 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
} }
#if TARGET_HOST_WINCE #if TARGET_HOST_WINCE
if(!(lParam & 0x40000000)) // Prevent auto-repeat if(!(lParam & 0x40000000)) // Prevent auto-repeat
{ {
wince_GetDefaultKeys(&gxKeyList, 0x03); wince_GetDefaultKeys(&gxKeyList, 0x03);
if(wParam==(unsigned)gxKeyList.vkRight) if(wParam==(unsigned)gxKeyList.vkRight)
keypress = GLUT_KEY_RIGHT; keypress = GLUT_KEY_RIGHT;
else if(wParam==(unsigned)gxKeyList.vkLeft) else if(wParam==(unsigned)gxKeyList.vkLeft)
keypress = GLUT_KEY_LEFT; keypress = GLUT_KEY_LEFT;
else if(wParam==(unsigned)gxKeyList.vkUp) else if(wParam==(unsigned)gxKeyList.vkUp)
keypress = GLUT_KEY_UP; keypress = GLUT_KEY_UP;
else if(wParam==(unsigned)gxKeyList.vkDown) else if(wParam==(unsigned)gxKeyList.vkDown)
keypress = GLUT_KEY_DOWN; keypress = GLUT_KEY_DOWN;
else if(wParam==(unsigned)gxKeyList.vkA) else if(wParam==(unsigned)gxKeyList.vkA)
keypress = GLUT_KEY_F1; keypress = GLUT_KEY_F1;
else if(wParam==(unsigned)gxKeyList.vkB) else if(wParam==(unsigned)gxKeyList.vkB)
keypress = GLUT_KEY_F2; keypress = GLUT_KEY_F2;
else if(wParam==(unsigned)gxKeyList.vkC) else if(wParam==(unsigned)gxKeyList.vkC)
keypress = GLUT_KEY_F3; keypress = GLUT_KEY_F3;
else if(wParam==(unsigned)gxKeyList.vkStart) else if(wParam==(unsigned)gxKeyList.vkStart)
keypress = GLUT_KEY_F4; keypress = GLUT_KEY_F4;
} }
#endif #endif
if( keypress != -1 ) if( keypress != -1 )

View File

@ -400,21 +400,21 @@ int FGAPIENTRY glutGet( GLenum eWhat )
case GLUT_WINDOW_BORDER_WIDTH : case GLUT_WINDOW_BORDER_WIDTH :
#if TARGET_HOST_WINCE #if TARGET_HOST_WINCE
return 0; return 0;
#else #else
return GetSystemMetrics( SM_CXSIZEFRAME ); return GetSystemMetrics( SM_CXSIZEFRAME );
#endif //TARGET_HOST_WINCE #endif //TARGET_HOST_WINCE
case GLUT_WINDOW_HEADER_HEIGHT : case GLUT_WINDOW_HEADER_HEIGHT :
#if TARGET_HOST_WINCE #if TARGET_HOST_WINCE
return 0; return 0;
#else #else
return GetSystemMetrics( SM_CYCAPTION ); return GetSystemMetrics( SM_CYCAPTION );
#endif //TARGET_HOST_WINCE #endif //TARGET_HOST_WINCE
case GLUT_DISPLAY_MODE_POSSIBLE: case GLUT_DISPLAY_MODE_POSSIBLE:
#if TARGET_HOST_WINCE #if TARGET_HOST_WINCE
return GL_FALSE; return GL_FALSE;
#else #else
return fgSetupPixelFormat( fgStructure.Window, GL_TRUE, return fgSetupPixelFormat( fgStructure.Window, GL_TRUE,
PFD_MAIN_PLANE ); PFD_MAIN_PLANE );
@ -535,7 +535,7 @@ int FGAPIENTRY glutDeviceGet( GLenum eWhat )
* We are much more fortunate under Win32 about this... * We are much more fortunate under Win32 about this...
*/ */
#if TARGET_HOST_WINCE #if TARGET_HOST_WINCE
return 1; return 1;
#else #else
return GetSystemMetrics( SM_CMOUSEBUTTONS ); return GetSystemMetrics( SM_CMOUSEBUTTONS );
#endif //TARGET_HOST_WINCE #endif //TARGET_HOST_WINCE