[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-
From: |
Gabriele Giacone |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1708-ga1ef95e |
Date: |
Tue, 06 Aug 2013 18:33:04 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via a1ef95e86d2d9c66c424904506c10abc5d60dba5 (commit)
from b9e45cd77df2fe846dc6700e8b6a0bbfcc3f0178 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=a1ef95e86d2d9c66c424904506c10abc5d60dba5
commit a1ef95e86d2d9c66c424904506c10abc5d60dba5
Author: Gabriele Giacone <address@hidden>
Date: Tue Aug 6 20:32:06 2013 +0200
Fix narrowing conversion warnings.
diff --git a/gui/sdl/sdl_agg_glue.cpp b/gui/sdl/sdl_agg_glue.cpp
index 3ae8073..df37caa 100644
--- a/gui/sdl/sdl_agg_glue.cpp
+++ b/gui/sdl/sdl_agg_glue.cpp
@@ -185,11 +185,14 @@ SdlAggGlue::render()
void
SdlAggGlue::render(int minx, int miny, int maxx, int maxy)
{
- // Update only the invalidated rectangle
- SDL_Rect clip = { minx, miny, maxx - minx, maxy - miny };
- SDL_SetClipRect(_screen, &clip);
- SDL_BlitSurface(_sdl_surface, 0, _screen, 0);
- SDL_UpdateRect(_screen, clip.x, clip.y, clip.w, clip.h);
+ // Update only the invalidated rectangle
+ SDL_Rect clip = { static_cast<Sint16>(minx),
+ static_cast<Sint16>(miny),
+ static_cast<Uint16>(maxx - minx),
+ static_cast<Uint16>(maxy - miny)};
+ SDL_SetClipRect(_screen, &clip);
+ SDL_BlitSurface(_sdl_surface, 0, _screen, 0);
+ SDL_UpdateRect(_screen, clip.x, clip.y, clip.w, clip.h);
}
} // namespace gnash
-----------------------------------------------------------------------
Summary of changes:
gui/sdl/sdl_agg_glue.cpp | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1708-ga1ef95e,
Gabriele Giacone <=