summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1a15997)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@954
7f0cb862-5218-0410-a997-
914c9d46530a
/* Check if "hint" is present in "property" for "window". */
int fgHintPresent(Window window, Atom property, Atom hint)
{
/* Check if "hint" is present in "property" for "window". */
int fgHintPresent(Window window, Atom property, Atom hint)
{
int number_of_atoms;
int supported;
int i;
supported = 0;
int number_of_atoms;
int supported;
int i;
supported = 0;
- atoms_ptr = malloc(sizeof(Atom *));
number_of_atoms = fghGetWindowProperty(window,
property,
XA_ATOM,
number_of_atoms = fghGetWindowProperty(window,
property,
XA_ATOM,
- (unsigned char **) atoms_ptr);
+ (unsigned char **) &atoms);
for (i = 0; i < number_of_atoms; i++)
for (i = 0; i < number_of_atoms; i++)
- {
- if ((*atoms_ptr)[i] == hint)
+ {
+ if (atoms[i] == hint)
{
supported = 1;
break;
}
{
supported = 1;
break;
}