/*
* X11 GUI for slide puzzle game
- * Copyright © 2022 Nick Bowler
+ * Copyright © 2022-2023 Nick Bowler
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
XtVaSetValues(shell, XtNiconPixmap, None, (char *)NULL);
XtVaSetValues(shell, XtNiconPixmap, state->icon_pixmap, (char *)NULL);
- if (state->use_ewmh_icons) {
+ if (state->flags & FLAG_USE_EWMH_ICONS) {
Atom net_wm_icon = XInternAtom(display, "_NET_WM_ICON", FALSE);
Colormap cmap = DefaultColormapOfScreen(XtScreen(shell));
XColor colours[(TILE_MAX-1)*COLOUR_MAX];
unsigned sz = state->game_tile_sz;
int i;
- if (state->view_goal_on_game) {
+ if (state->flags & FLAG_VIEW_GOAL_ON_GAME) {
for (i = 0; i < 3; i++) {
buf[i] = state->board.goal[i];
buf[i] = (gp[i] & ~GOAL_MASK) | (buf[i] << GOAL_SHIFT);