~kroq-gar78/ubuntu/precise/ace-of-penguins/fix-978446

« back to all changes in this revision

Viewing changes to games/solitaire.c

  • Committer: Bazaar Package Importer
  • Author(s): Jari Aalto
  • Date: 2009-08-05 11:39:32 UTC
  • Revision ID: james.westby@ubuntu.com-20090805113932-5u4zxr5hoh38pu3o
Tags: 1.2-9
* GENRAL INFORMATION:
  - Summary: the whole package is now patch based.
  - The orginal sources were restored and patches accumulated
    to it were extracted and moved to /debian/patches
  - The original sources were upgraded to latest automake by
    re-libtoolizing with 'autoreconf -fi'. The results were then
    turned into patches. See debian/README.source
* debian/*.desktop:
  - New files. Files submitted by Daniel Dickinson <cshore@wightman.ca>.
    Closes: #478847.
* debian/*.pod
  - Fix incorrect =item tag.
* debian/*.lintian-overrides:
  - Ignore autoreconf and library notes.
* debian/copyright:
  - Update to new dh-make layout.
  - Add Debian packaging copyrights.
  - Change upstream URL to point to freshmeat.
  - Explicitly spell v2 or any later version (lintian).
* debian/compat:
  - update to 7.
* debian/control:
  - (Build-Depends): debhelper (>= 7), was 4. Add dpatch.
  - (Description): Replace term 'Unix/X' with 'graphical'.
  - (Vcs-*): Add new fields.
  - (Homepage): Add new field.
  - (Standards-Version): Update to 3.8.2.
  - (Build-Depends): Remove non-used dpatch.
* debian/debian-vars.mk:
  - Many new variables like CFLAGS, MAKE_FLAGS
  - By default use -j<CPU_COUNT> for make.
* debian/rules:
  - Add dpatch.
  - (binary-arch): Add dh_compress and adjust the manual page
    installation. Remove obsolete dh_desktop.
  - (build-man): New.
  - (clean): Fix lintian checks about -$(MAKE). Clean editors' temporary
    files.
  - (clean-man): New.
  - (install): install *.desktop files. Change programs' prefix form
    ace_* to ace-*. Change 'dh_clean -k' with dh_prep. Install lintian
    override file.
  - (test): New target.
* debian/README.source:
  - Explain autconf 2.64 re-libtoolize process
  - Explain debian/rules specifics concerning libtoolize.
* games/taipei.html:
  - Revert Bug#327185. According to the upstream,
    every game can be won. Explain this in page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include <time.h>
20
20
#include <math.h>
21
21
#include "cards.h"
22
 
#include "imagelib.h"
23
22
 
24
23
#define W CARD_WIDTH
25
24
#define H CARD_HEIGHT
32
31
Stack *outcells[4];
33
32
Stack *maincells[7];
34
33
 
35
 
static int drag_active = 0;
36
 
 
37
34
static int auto_move();
38
35
 
39
36
int
156
153
  stack_redraw();
157
154
}
158
155
 
159
 
static void check_for_end_of_game();
160
 
 
161
156
extern char solitaire_help[];
162
157
 
163
158
void
362
357
  Picture *cp = get_centered_pic();
363
358
  src_stack = 0;
364
359
 
365
 
  // we are in a drag and annother mouse-button is pressed: abort drag
366
 
  if (drag_active) {
367
 
    stack_drop(dest_stack, last_n);
368
 
    drag_active = 0;
369
 
    return;
370
 
  };
371
 
  
372
360
  if ((cp == youlose || cp == youwin)
373
361
      && (x > table_width/2-cp->w/2
374
362
          && x < table_width/2+cp->w/2
516
504
void
517
505
drag(int x, int y, int b)
518
506
{
519
 
  drag_active = 1;
520
507
  if (b > 1) return;
521
508
  last_n = n_droppable(x, y);
522
509
  stack_continue_drag(last_n, x, y);
534
521
    return;
535
522
  }
536
523
 
537
 
  drag_active = 0;
538
 
  
539
524
  stack_drop(dest_stack, last_n);
540
525
 
541
526
  check_for_end_of_game();