~ubuntu-branches/ubuntu/quantal/sgt-puzzles/quantal

« back to all changes in this revision

Viewing changes to rect.c

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings
  • Date: 2009-11-02 01:34:59 UTC
  • mfrom: (1.1.10 upstream) (3.1.8 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091102013459-nuiixd3tglpawkg4
Tags: 8692-1
* New upstream version
* Add German descriptions to desktop files, thanks to Helge Kreutzmann
* Update debian/watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
2431
2431
        (xc != ui->drag_end_x || yc != ui->drag_end_y)) {
2432
2432
        int t;
2433
2433
 
 
2434
        if (ui->drag_end_x != -1 && ui->drag_end_y != -1)
 
2435
            ui->dragged = TRUE;
2434
2436
        ui->drag_end_x = xc;
2435
2437
        ui->drag_end_y = yc;
2436
 
        ui->dragged = TRUE;
2437
2438
        active = TRUE;
2438
2439
 
2439
2440
        if (xc >= 0 && xc <= 2*from->w &&
2813
2814
    {
2814
2815
        char buf[256];
2815
2816
 
2816
 
        if (ui->x1 >= 0 && ui->y1 >= 0 &&
 
2817
        if (ui->dragged &&
 
2818
            ui->x1 >= 0 && ui->y1 >= 0 &&
2817
2819
            ui->x2 >= 0 && ui->y2 >= 0) {
2818
2820
            sprintf(buf, "%dx%d ",
2819
2821
                    ui->x2-ui->x1,