VirtualBox

Changeset 4244 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Aug 20, 2007 3:07:41 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23744
Message:

add 800x600 and 640x480 as default screen resultions to Linux/X11 guests as well

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  
    494494    {
    495495        /* 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*));
    497497        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;
    499501    }
    500502    else
     
    502504        /* Add 1024x768 to the end of the mode list in case the others are all invalid. */
    503505        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)
    505507                                   * sizeof(char *));
    506508        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;
    508512    }
    509513
  • trunk/src/VBox/Additions/linux/xgraphics/vboxvideo_68.c

    r4071 r4244  
    477477    {
    478478        /* 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*));
    480480        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;
    482484    }
    483485    else
     
    485487        /* Add 1024x768 to the end of the mode list in case the others are all invalid. */
    486488        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)
    488490                                   * sizeof(char *));
    489491        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;
    491495    }
    492496
  • trunk/src/VBox/Additions/linux/xgraphics/vboxvideo_70.c

    r4071 r4244  
    492492    {
    493493        /* 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*));
    495495        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;
    497499    }
    498500    else
     
    500502        /* Add 1024x768 to the end of the mode list in case the others are all invalid. */
    501503        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)
    503505                                   * sizeof(char *));
    504506        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;
    506510    }
    507511
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette