Changeset 4244 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Aug 20, 2007 3:07:41 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 23744
- Location:
- trunk/src/VBox/Additions/linux/xgraphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/xgraphics/vboxvideo_13.c
r4071 r4244 494 494 { 495 495 /* The user specified no modes at all - specify 1024x768 as a default. */ 496 pScrn->display->modes = xnfalloc( 2* sizeof(char*));496 pScrn->display->modes = xnfalloc(4 * sizeof(char*)); 497 497 pScrn->display->modes[0] = "1024x768"; 498 pScrn->display->modes[1] = NULL; 498 pScrn->display->modes[1] = "800x600"; 499 pScrn->display->modes[2] = "640x480"; 500 pScrn->display->modes[3] = NULL; 499 501 } 500 502 else … … 502 504 /* Add 1024x768 to the end of the mode list in case the others are all invalid. */ 503 505 for (i = 0; pScrn->display->modes[i] != NULL; i++); 504 pScrn->display->modes = xnfrealloc(pScrn->display->modes, (i + 2)506 pScrn->display->modes = xnfrealloc(pScrn->display->modes, (i + 4) 505 507 * sizeof(char *)); 506 508 pScrn->display->modes[i ] = "1024x768"; 507 pScrn->display->modes[i+1] = NULL; 509 pScrn->display->modes[i+1] = "800x600"; 510 pScrn->display->modes[i+2] = "640x480"; 511 pScrn->display->modes[i+3] = NULL; 508 512 } 509 513 -
trunk/src/VBox/Additions/linux/xgraphics/vboxvideo_68.c
r4071 r4244 477 477 { 478 478 /* The user specified no modes at all - specify 1024x768 as a default. */ 479 pScrn->display->modes = xnfalloc( 2* sizeof(char*));479 pScrn->display->modes = xnfalloc(4 * sizeof(char*)); 480 480 pScrn->display->modes[0] = "1024x768"; 481 pScrn->display->modes[1] = NULL; 481 pScrn->display->modes[1] = "800x600"; 482 pScrn->display->modes[2] = "640x480"; 483 pScrn->display->modes[3] = NULL; 482 484 } 483 485 else … … 485 487 /* Add 1024x768 to the end of the mode list in case the others are all invalid. */ 486 488 for (i = 0; pScrn->display->modes[i] != NULL; i++); 487 pScrn->display->modes = xnfrealloc(pScrn->display->modes, (i + 2)489 pScrn->display->modes = xnfrealloc(pScrn->display->modes, (i + 4) 488 490 * sizeof(char *)); 489 491 pScrn->display->modes[i ] = "1024x768"; 490 pScrn->display->modes[i+1] = NULL; 492 pScrn->display->modes[i+1] = "800x600"; 493 pScrn->display->modes[i+2] = "640x480"; 494 pScrn->display->modes[i+3] = NULL; 491 495 } 492 496 -
trunk/src/VBox/Additions/linux/xgraphics/vboxvideo_70.c
r4071 r4244 492 492 { 493 493 /* The user specified no modes at all - specify 1024x768 as a default. */ 494 pScrn->display->modes = xnfalloc( 2* sizeof(char*));494 pScrn->display->modes = xnfalloc(4 * sizeof(char*)); 495 495 pScrn->display->modes[0] = "1024x768"; 496 pScrn->display->modes[1] = NULL; 496 pScrn->display->modes[1] = "800x600"; 497 pScrn->display->modes[2] = "640x480"; 498 pScrn->display->modes[3] = NULL; 497 499 } 498 500 else … … 500 502 /* Add 1024x768 to the end of the mode list in case the others are all invalid. */ 501 503 for (i = 0; pScrn->display->modes[i] != NULL; i++); 502 pScrn->display->modes = xnfrealloc(pScrn->display->modes, (i + 2)504 pScrn->display->modes = xnfrealloc(pScrn->display->modes, (i + 4) 503 505 * sizeof(char *)); 504 506 pScrn->display->modes[i ] = "1024x768"; 505 pScrn->display->modes[i+1] = NULL; 507 pScrn->display->modes[i+1] = "800x600"; 508 pScrn->display->modes[i+2] = "640x480"; 509 pScrn->display->modes[i+3] = NULL; 506 510 } 507 511
Note:
See TracChangeset
for help on using the changeset viewer.