VirtualBox

Changeset 7368 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 7, 2008 2:31:51 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28792
Message:

Use [] + RT_ELEMENTS() instead of some size constant. static.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp

    r7335 r7368  
    35993599    if (!ok || w > screen.width() || h > screen.height())
    36003600    {
    3601         enum { NUM_RES = 4 };
    3602         const int sizeList[NUM_RES][2] =
     3601        static const int sizeList[][2] =
    36033602        {
    36043603            { 640, 480 },
     
    36113610        /* Find a size that is smaller than three quarters of the reported
    36123611           screen geometry. */
    3613         while (   (i + 1 < NUM_RES)
    3614                && (sizeList[i + 1][0] < screen.width() * 3 / 4)
    3615                && (sizeList[i + 1][1] < screen.height() * 3 / 4))
     3612        while (   i + 1 < RT_ELEMENTS (sizeList)
     3613               && sizeList[i + 1][0] < screen.width() * 3 / 4
     3614               && sizeList[i + 1][1] < screen.height() * 3 / 4)
    36163615            ++i;
    36173616        w = sizeList[i][0];
Note: See TracChangeset for help on using the changeset viewer.

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