VirtualBox

Changeset 26509 in vbox


Ignore:
Timestamp:
Feb 14, 2010 9:35:03 AM (15 years ago)
Author:
vboxsync
Message:

Frontends: tabs -> spaces.

Location:
trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/.scm-settings

    r26506 r26509  
    8888*/src/apps/tunctl/tunctl.c: --no-convert-tabs
    8989vboxvideo_drm.c: --no-convert-tabs
     90*linux.mod.c: --no-convert-tabs
    9091
    9192
  • trunk/src/VBox/Frontends/VBoxBFE/SDLConsole.cpp

    r26502 r26509  
    181181                        &&  (SDL_GetModState() & ~(KMOD_MODE | KMOD_NUM | KMOD_RESERVED)) == gHostKey)
    182182                    {
    183                         EvHKeyDown = *ev;
     183                        EvHKeyDown = *ev;
    184184                        enmHKeyState = HKEYSTATE_DOWN;
    185185                        break;
     
    415415        default:
    416416        {
    417           printf("%s:%d unknown SDL event %d\n",__FILE__,__LINE__,ev->type);
     417            printf("%s:%d unknown SDL event %d\n",__FILE__,__LINE__,ev->type);
    418418            LogBird(("unknown SDL event %d\n", ev->type));
    419419            break;
     
    588588        case SDLK_CLEAR:            return 0x;
    589589        case SDLK_KP_EQUALS:        return 0x;
    590         case SDLK_COMPOSE:          return 0x;
     590        case SDLK_COMPOSE:          return 0x;
    591591        case SDLK_HELP:             return 0x;
    592592        case SDLK_BREAK:            return 0x;
    593         case SDLK_POWER:            return 0x;
    594         case SDLK_EURO:             return 0x;
    595         case SDLK_UNDO:             return 0x;
     593        case SDLK_POWER:            return 0x;
     594        case SDLK_EURO:             return 0x;
     595        case SDLK_UNDO:             return 0x;
    596596#endif
    597597        default:
  • trunk/src/VBox/Frontends/VBoxBFE/SDLFramebuffer.cpp

    r19844 r26509  
    314314        return E_POINTER;
    315315
    316         /// @todo
    317 
    318         NOREF(aCount);
    319         NOREF(aCountCopied);
     316    /// @todo
     317
     318    NOREF(aCount);
     319    NOREF(aCountCopied);
    320320
    321321    return S_OK;
     
    329329        return E_POINTER;
    330330
    331         /// @todo
    332 
    333         NOREF(aCount);
     331    /// @todo
     332
     333    NOREF(aCount);
    334334
    335335    return S_OK;
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp

    r23170 r26509  
    597597    /// @todo
    598598
    599         NOREF(aCount);
    600         NOREF(aCountCopied);
     599    NOREF(aCount);
     600    NOREF(aCountCopied);
    601601
    602602    return S_OK;
     
    612612    /// @todo
    613613
    614         NOREF(aCount);
     614    NOREF(aCount);
    615615
    616616    return S_OK;
  • trunk/src/VBox/Frontends/VBoxSDL/Helper.cpp

    r13835 r26509  
    7676        if ((n > 0) && !g_fTerminateXPCOMQueueThread)
    7777        {
    78             /*
    79              * Wait until all XPCOM events are processed. 1s just for sanity.
     78            /*
     79             * Wait until all XPCOM events are processed. 1s just for sanity.
    8080             */
    81             int iWait = 1000;
    82             /*
    83              * Don't post an event if there is a pending XPCOM event to prevent an
    84              * overflow of the SDL event queue.
    85              */
    86             if (g_s32XPCOMEventsPending < 1)
    87             {
     81            int iWait = 1000;
     82            /*
     83             * Don't post an event if there is a pending XPCOM event to prevent an
     84             * overflow of the SDL event queue.
     85             */
     86            if (g_s32XPCOMEventsPending < 1)
     87            {
    8888                /*
    89                 * Post the event and wait for it to be processed. If we don't wait,
    90                 * we'll flood the queue on SMP systems and when the main thread is busy.
    91                 * In the event of a push error, we'll yield the timeslice and retry.
    92                 */
     89                * Post the event and wait for it to be processed. If we don't wait,
     90                * we'll flood the queue on SMP systems and when the main thread is busy.
     91                * In the event of a push error, we'll yield the timeslice and retry.
     92                */
    9393                SDL_Event event = {0};
    9494                event.type = SDL_USEREVENT;
  • trunk/src/VBox/Frontends/VirtualBox/shaders/splitBGRA.c

    r22776 r26509  
    22{
    33    int pix = int(coord);
    4         float part = coord - float(pix);
    5         if(part < 0.25)
    6                 return color.b;
    7         if(part < 0.5)
    8                 return color.g;
    9         if(part < 0.75)
    10                 return color.r;
    11         return color.a;
     4    float part = coord - float(pix);
     5    if(part < 0.25)
     6        return color.b;
     7    if(part < 0.5)
     8        return color.g;
     9    if(part < 0.75)
     10        return color.r;
     11    return color.a;
    1212}
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp

    r26311 r26509  
    888888                    mAccelerate2DVideo ? new VBoxOverlayFrameBuffer<VBoxQuartz2DFrameBuffer> (this, &mainWnd->session()) :
    889889#endif
    890                     new VBoxQuartz2DFrameBuffer (this);
     890                    new VBoxQuartz2DFrameBuffer (this);
    891891            break;
    892892#endif
     
    34973497    /**/
    34983498#elif defined (Q_WS_X11)
    3499         if (aCapture)
    3500                 XGrabKey (QX11Info::display(), AnyKey, AnyModifier,
     3499    if (aCapture)
     3500        XGrabKey (QX11Info::display(), AnyKey, AnyModifier,
    35013501                  window()->winId(), False,
    35023502                  GrabModeAsync, GrabModeAsync);
    3503         else
    3504                 XUngrabKey (QX11Info::display(),  AnyKey, AnyModifier,
     3503    else
     3504        XUngrabKey (QX11Info::display(),  AnyKey, AnyModifier,
    35053505                    window()->winId());
    35063506#elif defined (Q_WS_MAC)
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp

    r25763 r26509  
    19931993{
    19941994    glViewport(-viewport.x(),
    1995                    viewport.height() + viewport.y() - display.height(),
     1995               viewport.height() + viewport.y() - display.height(),
    19961996               display.width(),
    19971997               display.height());
     
    22892289            if (!bFound)
    22902290            {
    2291                 VBOXQGLLOG (("!!unsupported fourcc!!!: %c%c%c%c\n",
    2292                         (pCmd->SurfInfo.PixelFormat.fourCC & 0x000000ff),
    2293                                 (pCmd->SurfInfo.PixelFormat.fourCC & 0x0000ff00) >> 8,
    2294                                 (pCmd->SurfInfo.PixelFormat.fourCC & 0x00ff0000) >> 16,
    2295                         (pCmd->SurfInfo.PixelFormat.fourCC & 0xff000000) >> 24
    2296                         ));
     2291                VBOXQGLLOG (("!!unsupported fourcc!!!: %c%c%c%c\n",
     2292                             (pCmd->SurfInfo.PixelFormat.fourCC & 0x000000ff),
     2293                             (pCmd->SurfInfo.PixelFormat.fourCC & 0x0000ff00) >> 8,
     2294                             (pCmd->SurfInfo.PixelFormat.fourCC & 0x00ff0000) >> 16,
     2295                             (pCmd->SurfInfo.PixelFormat.fourCC & 0xff000000) >> 24
     2296                             ));
    22972297                pCmd->u.out.ErrInfo = -1;
    22982298                return VINF_SUCCESS;
     
    41384138void VBoxQGLOverlay::initGl()
    41394139{
    4140         if(mpOverlayWidget)
    4141                 return;
     4140    if(mpOverlayWidget)
     4141        return;
    41424142
    41434143    mpOverlayWidget = new VBoxGLWidget (mView, mView->viewport(), &mSettings);
     
    46434643        } break;
    46444644        case VBOXVHWACMD_TYPE_ENABLE:
    4645                         initGl();
     4645            initGl();
    46464646        case VBOXVHWACMD_TYPE_DISABLE:
    46474647            pCmd->rc = VINF_SUCCESS;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h

    r26502 r26509  
    14081408    bool performDisplayAndSwap(bool bForce)
    14091409    {
    1410         bForce = mDisplay.performDisplay(bForce | mRepaintNeeded);
     1410        bForce = mDisplay.performDisplay(bForce | mRepaintNeeded);
    14111411        if(bForce)
    14121412        {
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBQGL.cpp

    r25526 r26509  
    9494                              BOOL *aFinished)
    9595{
    96         aWidth = VBOXQGL_PROF_WIDTH;
    97         aHeight = VBOXQGL_PROF_HEIGHT;
     96    aWidth = VBOXQGL_PROF_WIDTH;
     97    aHeight = VBOXQGL_PROF_HEIGHT;
    9898    VBoxFrameBuffer::RequestResize (aScreenId, aPixelFormat,
    9999            aVRAM, aBitsPerPixel, aBytesPerLine,
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFrameBuffer.cpp

    r25526 r26509  
    275275void VBoxFrameBuffer::doProcessVHWACommand(QEvent * pEvent)
    276276{
    277         Q_UNUSED(pEvent);
     277    Q_UNUSED(pEvent);
    278278    /* should never be here */
    279279    AssertBreakpoint();
  • trunk/src/VBox/Frontends/VirtualBox/src/X11/XKeyboard-new.cpp

    r26502 r26509  
    205205    if ((1 == gfByLayoutOK) && (gfByTypeOK != 1))
    206206        dumpType(dpy);
    207     if ((gfByLayoutOK != 1) && (gfByTypeOK != 1)) {
     207    if ((gfByLayoutOK != 1) && (gfByTypeOK != 1))
     208    {
    208209        LogRel(("Failed to recognize the keyboard mapping or to guess it based on\n"
    209210                "the keyboard layout.  It is very likely that some keys will not\n"
     
    213214                "information such as whether you are using a remote X server or\n"
    214215                "something similar. \n"));
    215         unsigned *keyc2scan=X11DRV_getKeyc2scan();
    216 
    217         LogRel(("The keycode-to-scancode table is: %d=%d",0,keyc2scan[0]));
    218         for(int i=1; i<256; i++)
    219             LogRel((",%d=%d",i,keyc2scan[i]));
    220         LogRel(("\n"));
     216        unsigned *keyc2scan = X11DRV_getKeyc2scan();
     217
     218        LogRel(("The keycode-to-scancode table is: %d=%d",0,keyc2scan[0]));
     219        for (int i = 1; i < 256; i++)
     220            LogRel((",%d=%d",i,keyc2scan[i]));
     221        LogRel(("\n"));
    221222    }
    222223}
     
    256257    int (*scancodesTail)[2] = NULL;
    257258
    258     if(remapScancodes != QString::null) {
    259         QStringList tuples = remapScancodes.split(",", QString::SkipEmptyParts);
    260         scancodes = scancodesTail = new int [tuples.size()+1][2];
    261         for (int i = 0; i < tuples.size(); ++i) {
    262             QStringList keyc2scan = tuples.at(i).split("=");
    263             (*scancodesTail)[0] = keyc2scan.at(0).toUInt();
    264             (*scancodesTail)[1] = keyc2scan.at(1).toUInt();
    265             /* Do not advance on (ignore) identity mappings as this is
    266                the stop signal to initXKeyboard and friends */
    267             if((*scancodesTail)[0] != (*scancodesTail)[1])
    268                 scancodesTail++;
    269         }
    270         (*scancodesTail)[0] = (*scancodesTail)[1] = 0;
     259    if (remapScancodes != QString::null)
     260    {
     261        QStringList tuples = remapScancodes.split(",", QString::SkipEmptyParts);
     262        scancodes = scancodesTail = new int [tuples.size()+1][2];
     263        for (int i = 0; i < tuples.size(); ++i)
     264        {
     265            QStringList keyc2scan = tuples.at(i).split("=");
     266            (*scancodesTail)[0] = keyc2scan.at(0).toUInt();
     267            (*scancodesTail)[1] = keyc2scan.at(1).toUInt();
     268            /* Do not advance on (ignore) identity mappings as this is
     269               the stop signal to initXKeyboard and friends */
     270            if ((*scancodesTail)[0] != (*scancodesTail)[1])
     271                scancodesTail++;
     272        }
     273        (*scancodesTail)[0] = (*scancodesTail)[1] = 0;
    271274    }
    272275    /* initialize the X keyboard subsystem */
    273276    initXKeyboard (pDisplay ,scancodes);
    274277
    275     if(scancodes) delete scancodes;
    276 }
     278    if (scancodes)
     279        delete scancodes;
     280}
  • trunk/src/VBox/Frontends/VirtualBox/src/X11/keyboard-new.c

    r26291 r26509  
    456456    }
    457457    if (found != 0)
    458         memcpy(keyc2scan, main_keyboard_type_scans[i - 1], KEYC2SCAN_SIZE);
     458    memcpy(keyc2scan, main_keyboard_type_scans[i - 1], KEYC2SCAN_SIZE);
    459459    return found;
    460460}
     
    499499    /* Remap keycodes after initialization. Remapping stops after an
    500500       identity mapping is seen */
    501     if(remapScancodes != NULL)
    502         for(; (*remapScancodes)[0] != (*remapScancodes)[1]; remapScancodes++)
    503             keyc2scan[(*remapScancodes)[0]] = (*remapScancodes)[1];
     501    if (remapScancodes != NULL)
     502        for (; (*remapScancodes)[0] != (*remapScancodes)[1]; remapScancodes++)
     503            keyc2scan[(*remapScancodes)[0]] = (*remapScancodes)[1];
    504504
    505505    return (byLayout || byType) ? 1 : 0;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxFilePathSelectorWidget.cpp

    r25178 r26509  
    658658void VBoxEmptyFileSelector::setPath (const QString& aPath)
    659659{
    660         QString tmpPath = QDir::toNativeSeparators (aPath);
     660    QString tmpPath = QDir::toNativeSeparators (aPath);
    661661    if (mLabel)
    662662        mLabel->setText (QString ("<compact elipsis=\"start\">%1</compact>").arg (tmpPath));
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