Ticket #2534: ServerWindow.diff
File ServerWindow.diff, 2.7 KB (added by , 16 years ago) |
---|
-
src/servers/app/ServerWindow.cpp
2399 2399 link.Read<float>(&y); 2400 2400 2401 2401 picture->WriteSetOrigin(BPoint(x, y)); 2402 2403 fCurrentView->SetDrawingOrigin(BPoint(x, y)); 2404 _UpdateDrawState(fCurrentView); 2402 2405 break; 2403 2406 } 2404 2407 … … 2429 2432 link.Read<int8>(&drawingMode); 2430 2433 2431 2434 picture->WriteSetDrawingMode((drawing_mode)drawingMode); 2435 2436 fCurrentView->CurrentState()->SetDrawingMode((drawing_mode)drawingMode); 2437 fWindow->GetDrawingEngine()->SetDrawingMode((drawing_mode)drawingMode); 2432 2438 break; 2433 2439 } 2434 2440 … … 2438 2444 link.Read<float>(&x); 2439 2445 link.Read<float>(&y); 2440 2446 picture->WriteSetPenLocation(BPoint(x, y)); 2447 2448 fCurrentView->CurrentState()->SetPenLocation(BPoint(x, y)); 2441 2449 break; 2442 2450 } 2443 2451 case AS_VIEW_SET_PEN_SIZE: … … 2445 2453 float penSize; 2446 2454 link.Read<float>(&penSize); 2447 2455 picture->WriteSetPenSize(penSize); 2456 2457 fCurrentView->CurrentState()->SetPenSize(penSize); 2458 fWindow->GetDrawingEngine()->SetPenSize( 2459 fCurrentView->CurrentState()->PenSize()); 2448 2460 break; 2449 2461 } 2450 2462 … … 2459 2471 2460 2472 picture->WriteSetLineMode((cap_mode)lineCap, (join_mode)lineJoin, miterLimit); 2461 2473 2474 fCurrentView->CurrentState()->SetLineCapMode((cap_mode)lineCap); 2475 fCurrentView->CurrentState()->SetLineJoinMode((join_mode)lineJoin); 2476 fCurrentView->CurrentState()->SetMiterLimit(miterLimit); 2477 2478 fWindow->GetDrawingEngine()->SetStrokeMode((cap_mode)lineCap, 2479 (join_mode)lineJoin, miterLimit); 2462 2480 break; 2463 2481 } 2464 2482 case AS_VIEW_SET_SCALE: … … 2466 2484 float scale; 2467 2485 link.Read<float>(&scale); 2468 2486 picture->WriteSetScale(scale); 2487 2488 fCurrentView->SetScale(scale); 2489 _UpdateDrawState(fCurrentView); 2469 2490 break; 2470 2491 } 2471 2492 … … 2641 2662 rgb_color color; 2642 2663 link.Read(&color, sizeof(rgb_color)); 2643 2664 2644 if (code == AS_VIEW_SET_HIGH_COLOR) 2665 if (code == AS_VIEW_SET_HIGH_COLOR) { 2645 2666 picture->WriteSetHighColor(color); 2646 else 2667 fCurrentView->CurrentState()->SetHighColor(color); 2668 fWindow->GetDrawingEngine()->SetHighColor(color); 2669 } else { 2647 2670 picture->WriteSetLowColor(color); 2648 break; 2649 } 2671 fCurrentView->CurrentState()->SetLowColor(color); 2672 fWindow->GetDrawingEngine()->SetLowColor(color); 2673 } 2674 } break; 2650 2675 2651 2676 case AS_DRAW_STRING: 2652 2677 case AS_DRAW_STRING_WITH_DELTA: … … 2815 2840 picture->AddInt16((int16)alphaFunc); 2816 2841 picture->EndOp(); 2817 2842 2843 fCurrentView->CurrentState()->SetBlendingMode((source_alpha)srcAlpha, 2844 (alpha_function)alphaFunc); 2845 fWindow->GetDrawingEngine()->SetBlendingMode((source_alpha)srcAlpha, 2846 (alpha_function)alphaFunc); 2818 2847 break; 2819 2848 }*/ 2820 2849 default: