X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmswin%2Ffreeglut_state_mswin.c;h=ed1f57e3d8499a7c0972df71fbedec8cf223db7f;hb=25f8968aacfa2038bc34be17ccaf05cae52c1110;hp=764259c8c3f4e16e3155e8c37daebd7718a5e902;hpb=903e153b05350714b64556913c241f56d641a282;p=freeglut diff --git a/src/mswin/freeglut_state_mswin.c b/src/mswin/freeglut_state_mswin.c index 764259c..ed1f57e 100644 --- a/src/mswin/freeglut_state_mswin.c +++ b/src/mswin/freeglut_state_mswin.c @@ -26,9 +26,20 @@ */ #include -#include "freeglut_internal_mswin.h" +#include "../Common/freeglut_internal.h" +extern GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly, + unsigned char layer_type ); + +/* + * Helper functions for getting client area from the window rect + * and the window rect from the client area given the style of the window + * (or a valid window pointer from which the style can be queried). + */ +extern RECT fghGetClientArea( const SFG_Window *window, BOOL wantPosOutside ); +extern void fghGetBorderWidth(const DWORD windowStyle, int* xBorderWidth, int* yBorderWidth); + /* The following include file is available from SGI but is not standard: * #include