~ubuntu-branches/ubuntu/trusty/xscreensaver/trusty

« back to all changes in this revision

Viewing changes to hacks/maze.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-11-30 13:33:13 UTC
  • mfrom: (1.1.8 upstream) (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091130133313-3b5nz2e7hvbb8h3l
Tags: 5.10-3ubuntu1
* Merge with Debian unstable, remaining changes: (LP: #489062)
  - debian/control: add Build-Depends on ubuntu-artwork
  - debian/rules: use /usr/share/backgrounds
  - debian/control: Move xli | xloadimage recommends to suggests
  - debian/split-hacks.config: Use different set of default hacks to Debian
  - debian/source_xscreensaver.py: Add apport hook
  - debian/patches/53_XScreenSaver.ad.in.patch: Use Ubuntu branding

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
static void
211
211
initialize_maze (struct state *st)
212
212
{
 
213
  int retry_count = 0;
213
214
  int i, j, wall;
214
215
  int logow = 1 + st->logo_width / st->grid_width;
215
216
  int logoh = 1 + st->logo_height / st->grid_height;
216
217
  
217
218
 AGAIN:
218
219
 
 
220
  /* This can happen if the window is really small. Let's not sweat it. */
 
221
  if (++retry_count > 100) return;
 
222
 
 
223
 
219
224
  /* initialize all squares */
220
225
  for ( i=0; i<st->maze_size_x; i++) {
221
226
    for ( j=0; j<st->maze_size_y; j++) {