just a bit of formatting, mostly to test out my SVN commit access

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1081 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2012-03-08 02:23:21 +00:00
parent 2774b223ff
commit 6f04edd242

View File

@ -34,16 +34,16 @@
* compatibility. * compatibility.
*/ */
#if !defined(_WIN32_WCE) #if !defined(_WIN32_WCE)
# include <windows.h> # include <windows.h>
# include <windowsx.h> # include <windowsx.h>
# include <mmsystem.h> # include <mmsystem.h>
/* CYGWIN does not have tchar.h, but has TEXT(x), defined in winnt.h. */ /* CYGWIN does not have tchar.h, but has TEXT(x), defined in winnt.h. */
# ifndef __CYGWIN__ # ifndef __CYGWIN__
# include <tchar.h> # include <tchar.h>
# else # else
# define _TEXT(x) TEXT(x) # define _TEXT(x) TEXT(x)
# define _T(x) TEXT(x) # define _T(x) TEXT(x)
# endif # endif
#endif #endif
@ -54,11 +54,11 @@
#if !defined(ChangeDisplaySettingsEx) #if !defined(ChangeDisplaySettingsEx)
LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID); LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID);
LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID); LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);
# ifdef UNICODE # ifdef UNICODE
# define ChangeDisplaySettingsEx ChangeDisplaySettingsExW # define ChangeDisplaySettingsEx ChangeDisplaySettingsExW
# else # else
# define ChangeDisplaySettingsEx ChangeDisplaySettingsExA # define ChangeDisplaySettingsEx ChangeDisplaySettingsExA
# endif # endif
#endif #endif
@ -76,12 +76,12 @@ struct tagSFG_PlatformDisplay
* Make "freeglut" window handle and context types so that we don't need so * Make "freeglut" window handle and context types so that we don't need so
* much conditionally-compiled code later in the library. * much conditionally-compiled code later in the library.
*/ */
typedef HWND SFG_WindowHandleType ; typedef HWND SFG_WindowHandleType;
typedef HGLRC SFG_WindowContextType ; typedef HGLRC SFG_WindowContextType;
typedef struct tagSFG_PlatformContext SFG_PlatformContext; typedef struct tagSFG_PlatformContext SFG_PlatformContext;
struct tagSFG_PlatformContext struct tagSFG_PlatformContext
{ {
HDC Device; /* The window's device context */ HDC Device; /* The window's device context */
}; };
@ -109,14 +109,14 @@ extern int XParseGeometry (
const char *string, const char *string,
int *x, int *x,
int *y, int *y,
unsigned int *width, /* RETURN */ unsigned int *width, /* RETURN */
unsigned int *height); /* RETURN */ unsigned int *height); /* RETURN */
/* Joystick-Specific Definitions */ /* Joystick-Specific Definitions */
#if !defined(_WIN32_WCE) #if !defined(_WIN32_WCE)
# define _JS_MAX_AXES 8 # define _JS_MAX_AXES 8
typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick; typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick;
struct tagSFG_PlatformJoystick struct tagSFG_PlatformJoystick
{ {