Changeset 448
- Timestamp:
- 08/20/08 16:48:12 (4 months ago)
- Files:
-
- trunk/BAL/ChangeLogOWB (modified) (1 diff)
- trunk/BAL/WKAL/Concretizations/Graphics/SDL/BCGraphicsContextSDL.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/BAL/ChangeLogOWB
r444 r448 1 2008-08-20 Olivier DOLE <odole@pleyo.com> 2 3 Reviewed by Mario Bensi. 4 fix ticket #272: 5 Use boxRGBA from SDL_GFX to draw rectangle in order to fix some css 6 animations with SDL version. 7 8 * WKAL/Concretizations/Graphics/SDL/BCGraphicsContextSDL.cpp: 9 (WKAL::GraphicsContext::drawRect): 10 (WKAL::GraphicsContext::fillRect): 11 1 12 2008-08-19 Mario Bensi <mbensi@pleyo.com> 2 13 trunk/BAL/WKAL/Concretizations/Graphics/SDL/BCGraphicsContextSDL.cpp
r437 r448 122 122 123 123 if (fillColor().alpha()) { 124 if (!m_data->layers.isEmpty()) 125 {126 Color rectFillColor(fillColor().red(), fillColor().green(), fillColor().blue(), static_cast<int> (fillColor().alpha() * m_data->layers.last()));127 SDL_FillRect(surf, &dstRect, rectFillColor.rgb());128 }129 else124 if (!m_data->layers.isEmpty()) { 125 uint8_t alpha = static_cast<uint8_t> (fillColor().alpha() * m_data->layers.last()); 126 boxRGBA(surf, dstRect.x, dstRect.y, 127 dstRect.w + dstRect.x - 1, dstRect.h + dstRect.y -1, 128 fillColor().red(), fillColor().green(), fillColor().blue(), alpha); 129 } else 130 130 SDL_FillRect(surf, &dstRect, fillColor().rgb()); 131 131 } … … 500 500 if (!m_data->layers.isEmpty()) { 501 501 alpha = static_cast<int> (strokeColor().alpha() * m_data->layers.last()); 502 WebCore::Color c(color.red(), color.green(), color.blue(), alpha);503 502 boxRGBA(surf, 504 503 static_cast<Sint16>(rect.x()),
