Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/vtterm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4001 by doda, Sun Aug 15 14:41:40 2010 UTC revision 4017 by doda, Wed Aug 18 16:48:44 2010 UTC
# Line 2441  void CSSetAttr()               // SGR Line 2441  void CSSetAttr()               // SGR
2441      switch (b) {      switch (b) {
2442        case 'w': // Enable Filter Rectangle (DECEFR)        case 'w': // Enable Filter Rectangle (DECEFR)
2443          if (DecLocatorFlag & DecLocatorPixel) {          if (DecLocatorFlag & DecLocatorPixel) {
2444            x = LastX;            x = LastX + 1;
2445            y = LastY;            y = LastY + 1;
2446          }          }
2447          else {          else {
2448            DispConvWinToScreen(LastX, LastY, &x, &y, NULL);            DispConvWinToScreen(LastX, LastY, &x, &y, NULL);
2449              x++;
2450              y++;
2451          }          }
2452          FilterTop    = (Param[1]<0)?y:Param[1];          FilterTop    = (NParam<1 || Param[1]<1)? y : Param[1];
2453          FilterLeft   = (Param[2]<0)?x:Param[2];          FilterLeft   = (NParam<2 || Param[2]<1)? x : Param[2];
2454          FilterBottom = (Param[3]<0)?y:Param[3];          FilterBottom = (NParam<3 || Param[3]<1)? y : Param[3];
2455          FilterRight  = (Param[4]<0)?x:Param[4];          FilterRight  = (NParam<4 || Param[4]<1)? x : Param[4];
2456          DecLocatorFlag |= DecLocatorFiltered;          DecLocatorFlag |= DecLocatorFiltered;
2457          break;          break;
2458    
# Line 3762  BOOL DecLocatorReport(int Event, int But Line 3764  BOOL DecLocatorReport(int Event, int But
3764    char buff[24];    char buff[24];
3765    
3766    if (DecLocatorFlag & DecLocatorPixel) {    if (DecLocatorFlag & DecLocatorPixel) {
3767      x = LastX;      x = LastX + 1;
3768      y = LastY;      y = LastY + 1;
3769      DispConvScreenToWin(NumOfColumns+1, NumOfLines+1, &MaxX, &MaxY);      DispConvScreenToWin(NumOfColumns+1, NumOfLines+1, &MaxX, &MaxY);
3770      if (x >= MaxX || y < 0 || y >= MaxY) {      if (x < 1 || x > MaxX || y < 1 || y > MaxY) {
3771        x = -1;        x = -1;
3772      }      }
3773    }    }

Legend:
Removed from v.4001  
changed lines
  Added in v.4017

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26