Changeset 26509 in vbox
- Timestamp:
- Feb 14, 2010 9:35:03 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
-
.scm-settings (modified) (1 diff)
-
src/VBox/Frontends/VBoxBFE/SDLConsole.cpp (modified) (3 diffs)
-
src/VBox/Frontends/VBoxBFE/SDLFramebuffer.cpp (modified) (2 diffs)
-
src/VBox/Frontends/VBoxSDL/Framebuffer.cpp (modified) (2 diffs)
-
src/VBox/Frontends/VBoxSDL/Helper.cpp (modified) (1 diff)
-
src/VBox/Frontends/VirtualBox/shaders/splitBGRA.c (modified) (1 diff)
-
src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp (modified) (2 diffs)
-
src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp (modified) (4 diffs)
-
src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h (modified) (1 diff)
-
src/VBox/Frontends/VirtualBox/src/VBoxFBQGL.cpp (modified) (1 diff)
-
src/VBox/Frontends/VirtualBox/src/VBoxFrameBuffer.cpp (modified) (1 diff)
-
src/VBox/Frontends/VirtualBox/src/X11/XKeyboard-new.cpp (modified) (3 diffs)
-
src/VBox/Frontends/VirtualBox/src/X11/keyboard-new.c (modified) (2 diffs)
-
src/VBox/Frontends/VirtualBox/src/widgets/VBoxFilePathSelectorWidget.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.scm-settings
r26506 r26509 88 88 */src/apps/tunctl/tunctl.c: --no-convert-tabs 89 89 vboxvideo_drm.c: --no-convert-tabs 90 *linux.mod.c: --no-convert-tabs 90 91 91 92 -
trunk/src/VBox/Frontends/VBoxBFE/SDLConsole.cpp
r26502 r26509 181 181 && (SDL_GetModState() & ~(KMOD_MODE | KMOD_NUM | KMOD_RESERVED)) == gHostKey) 182 182 { 183 EvHKeyDown = *ev;183 EvHKeyDown = *ev; 184 184 enmHKeyState = HKEYSTATE_DOWN; 185 185 break; … … 415 415 default: 416 416 { 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); 418 418 LogBird(("unknown SDL event %d\n", ev->type)); 419 419 break; … … 588 588 case SDLK_CLEAR: return 0x; 589 589 case SDLK_KP_EQUALS: return 0x; 590 case SDLK_COMPOSE: return 0x;590 case SDLK_COMPOSE: return 0x; 591 591 case SDLK_HELP: return 0x; 592 592 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; 596 596 #endif 597 597 default: -
trunk/src/VBox/Frontends/VBoxBFE/SDLFramebuffer.cpp
r19844 r26509 314 314 return E_POINTER; 315 315 316 /// @todo317 318 NOREF(aCount);319 NOREF(aCountCopied);316 /// @todo 317 318 NOREF(aCount); 319 NOREF(aCountCopied); 320 320 321 321 return S_OK; … … 329 329 return E_POINTER; 330 330 331 /// @todo332 333 NOREF(aCount);331 /// @todo 332 333 NOREF(aCount); 334 334 335 335 return S_OK; -
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r23170 r26509 597 597 /// @todo 598 598 599 NOREF(aCount);600 NOREF(aCountCopied);599 NOREF(aCount); 600 NOREF(aCountCopied); 601 601 602 602 return S_OK; … … 612 612 /// @todo 613 613 614 NOREF(aCount);614 NOREF(aCount); 615 615 616 616 return S_OK; -
trunk/src/VBox/Frontends/VBoxSDL/Helper.cpp
r13835 r26509 76 76 if ((n > 0) && !g_fTerminateXPCOMQueueThread) 77 77 { 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. 80 80 */ 81 int iWait = 1000;82 /*83 * Don't post an event if there is a pending XPCOM event to prevent an84 * 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 { 88 88 /* 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 */ 93 93 SDL_Event event = {0}; 94 94 event.type = SDL_USEREVENT; -
trunk/src/VBox/Frontends/VirtualBox/shaders/splitBGRA.c
r22776 r26509 2 2 { 3 3 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; 12 12 } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r26311 r26509 888 888 mAccelerate2DVideo ? new VBoxOverlayFrameBuffer<VBoxQuartz2DFrameBuffer> (this, &mainWnd->session()) : 889 889 #endif 890 new VBoxQuartz2DFrameBuffer (this);890 new VBoxQuartz2DFrameBuffer (this); 891 891 break; 892 892 #endif … … 3497 3497 /**/ 3498 3498 #elif defined (Q_WS_X11) 3499 if (aCapture)3500 XGrabKey (QX11Info::display(), AnyKey, AnyModifier,3499 if (aCapture) 3500 XGrabKey (QX11Info::display(), AnyKey, AnyModifier, 3501 3501 window()->winId(), False, 3502 3502 GrabModeAsync, GrabModeAsync); 3503 else3504 XUngrabKey (QX11Info::display(), AnyKey, AnyModifier,3503 else 3504 XUngrabKey (QX11Info::display(), AnyKey, AnyModifier, 3505 3505 window()->winId()); 3506 3506 #elif defined (Q_WS_MAC) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r25763 r26509 1993 1993 { 1994 1994 glViewport(-viewport.x(), 1995 viewport.height() + viewport.y() - display.height(),1995 viewport.height() + viewport.y() - display.height(), 1996 1996 display.width(), 1997 1997 display.height()); … … 2289 2289 if (!bFound) 2290 2290 { 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) >> 242296 ));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 )); 2297 2297 pCmd->u.out.ErrInfo = -1; 2298 2298 return VINF_SUCCESS; … … 4138 4138 void VBoxQGLOverlay::initGl() 4139 4139 { 4140 if(mpOverlayWidget)4141 return;4140 if(mpOverlayWidget) 4141 return; 4142 4142 4143 4143 mpOverlayWidget = new VBoxGLWidget (mView, mView->viewport(), &mSettings); … … 4643 4643 } break; 4644 4644 case VBOXVHWACMD_TYPE_ENABLE: 4645 initGl();4645 initGl(); 4646 4646 case VBOXVHWACMD_TYPE_DISABLE: 4647 4647 pCmd->rc = VINF_SUCCESS; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h
r26502 r26509 1408 1408 bool performDisplayAndSwap(bool bForce) 1409 1409 { 1410 bForce = mDisplay.performDisplay(bForce | mRepaintNeeded);1410 bForce = mDisplay.performDisplay(bForce | mRepaintNeeded); 1411 1411 if(bForce) 1412 1412 { -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBQGL.cpp
r25526 r26509 94 94 BOOL *aFinished) 95 95 { 96 aWidth = VBOXQGL_PROF_WIDTH;97 aHeight = VBOXQGL_PROF_HEIGHT;96 aWidth = VBOXQGL_PROF_WIDTH; 97 aHeight = VBOXQGL_PROF_HEIGHT; 98 98 VBoxFrameBuffer::RequestResize (aScreenId, aPixelFormat, 99 99 aVRAM, aBitsPerPixel, aBytesPerLine, -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFrameBuffer.cpp
r25526 r26509 275 275 void VBoxFrameBuffer::doProcessVHWACommand(QEvent * pEvent) 276 276 { 277 Q_UNUSED(pEvent);277 Q_UNUSED(pEvent); 278 278 /* should never be here */ 279 279 AssertBreakpoint(); -
trunk/src/VBox/Frontends/VirtualBox/src/X11/XKeyboard-new.cpp
r26502 r26509 205 205 if ((1 == gfByLayoutOK) && (gfByTypeOK != 1)) 206 206 dumpType(dpy); 207 if ((gfByLayoutOK != 1) && (gfByTypeOK != 1)) { 207 if ((gfByLayoutOK != 1) && (gfByTypeOK != 1)) 208 { 208 209 LogRel(("Failed to recognize the keyboard mapping or to guess it based on\n" 209 210 "the keyboard layout. It is very likely that some keys will not\n" … … 213 214 "information such as whether you are using a remote X server or\n" 214 215 "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")); 221 222 } 222 223 } … … 256 257 int (*scancodesTail)[2] = NULL; 257 258 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; 271 274 } 272 275 /* initialize the X keyboard subsystem */ 273 276 initXKeyboard (pDisplay ,scancodes); 274 277 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 456 456 } 457 457 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); 459 459 return found; 460 460 } … … 499 499 /* Remap keycodes after initialization. Remapping stops after an 500 500 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]; 504 504 505 505 return (byLayout || byType) ? 1 : 0; -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxFilePathSelectorWidget.cpp
r25178 r26509 658 658 void VBoxEmptyFileSelector::setPath (const QString& aPath) 659 659 { 660 QString tmpPath = QDir::toNativeSeparators (aPath);660 QString tmpPath = QDir::toNativeSeparators (aPath); 661 661 if (mLabel) 662 662 mLabel->setText (QString ("<compact elipsis=\"start\">%1</compact>").arg (tmpPath));
Note:
See TracChangeset
for help on using the changeset viewer.

