windows-nt/Source/XPSP1/NT/multimedia/opengl/test/demos/misc/miscutil.c

27 lines
467 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#include <stdlib.h>
#include <stdio.h>
int
miscParseGeometry( char *Geometry,
int *x,
int *y,
int *Width,
int *Height
)
{
int Scanned = 0;
if ( NULL != Geometry )
{
Scanned = sscanf( Geometry, "%ix%i+%i+%i", Width, Height, x, y );
}
return( Scanned );
}
char *
miscGetGeometryHelpString( void )
{
return( "WidthxHeight+Left+Top" );
}