The R Project SVN R

Rev

Rev 5664 | Rev 6626 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5664 Rev 6098
Line 599... Line 599...
599
 
599
 
600
void consoletogglelazy(control c)
600
void consoletogglelazy(control c)
601
FBEGIN
601
FBEGIN
602
    if (p->kind == PAGER) return;
602
    if (p->kind == PAGER) return;
603
    p->lazyupdate = (p->lazyupdate + 1) % 2;
603
    p->lazyupdate = (p->lazyupdate + 1) % 2;
604
FVOIDEND;
604
FVOIDEND
605
 
605
 
606
int consolegetlazy(control c)
606
int consolegetlazy(control c)
607
FBEGIN
607
FBEGIN
608
FEND(p->lazyupdate)
608
FEND(p->lazyupdate)
609
 
609
 
Line 1241... Line 1241...
1241
    COLS = r.width/FW - 1;
1241
    COLS = r.width/FW - 1;
1242
    WIDTH = r.width;
1242
    WIDTH = r.width;
1243
    HEIGHT = r.height;
1243
    HEIGHT = r.height;
1244
    BORDERX = (WIDTH - COLS*FW) / 2;
1244
    BORDERX = (WIDTH - COLS*FW) / 2;
1245
    BORDERY = (HEIGHT - ROWS*FH) / 2;
1245
    BORDERY = (HEIGHT - ROWS*FH) / 2;
1246
    if(p->lbuf) FVOIDRETURN;    /* don't implement resize if no content
-
 
1247
				   yet in pager */
-
 
1248
    del(BM);
1246
    del(BM);
1249
    BM = newbitmap(r.width, r.height, 2);
1247
    BM = newbitmap(r.width, r.height, 2);
1250
    if (!BM) {
1248
    if (!BM) {
1251
       R_ShowMessage("Insufficient memory. Please close the console");
1249
       R_ShowMessage("Insufficient memory. Please close the console");
1252
       return ;
1250
       return ;
1253
    }
1251
    }
-
 
1252
    if(!p->lbuf) FVOIDRETURN;    /* don't implement resize if no content
-
 
1253
				   yet in pager */
1254
    if (p->r >= 0) {
1254
    if (p->r >= 0) {
1255
        if (NUMLINES > ROWS) {
1255
        if (NUMLINES > ROWS) {
1256
	    p->r = ROWS - 1;
1256
	    p->r = ROWS - 1;
1257
        } else
1257
        } else
1258
	    p->r = NUMLINES - 1;
1258
	    p->r = NUMLINES - 1;