Changeset 19

Show
Ignore:
Timestamp:
03/27/07 18:55:06 (2 years ago)
Author:
takkaria
Message:

Fix #58 (panel change from 3.0.6 messes up running and detection).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/xtra2.c

    r1 r19  
    24912491                } 
    24922492 
    2493                 /* Scroll screen vertically when 1/4 screen_hgt grids from top/bottom edge */ 
    2494                 else if ((py < wy + screen_hgt / 4) || (py >= wy + (3 * screen_hgt) / 4)) 
     2493                /* Scroll screen vertically when 3 grids from top/bottom edge */ 
     2494                else if ((py < wy + 3) || (py >= wy + screen_hgt - 3)) 
    24952495                { 
    24962496                        wy = py - panel_hgt; 
     
    25052505                } 
    25062506 
    2507                 /* Scroll screen horizontally when 1/4 screen_wid grids from left/right edge */ 
    2508                 else if ((px < wx + screen_wid / 4) || (px >= wx + (3 * screen_wid) / 4)) 
     2507                /* Scroll screen horizontally when 3 grids from left/right edge */ 
     2508                else if ((px < wx + 3) || (px >= wx + screen_wid - 3)) 
    25092509                { 
    25102510                        wx = px - panel_wid;