Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-src_font.cpp,v 1.1 2012/11/23 12:35:01 joerg Exp $
--- src/font.cpp.orig 2012-11-22 20:41:19.000000000 +0000
+++ src/font.cpp
@@ -198,7 +198,7 @@ public:
SDL_Rect& srcrect = chrs[static_cast<unsigned char>(text[i])];
if (srcrect.w != 0 && srcrect.h != 0)
{
- SDL_Rect dstrect = { int(dstx), int(dsty), 0, 0 };
+ SDL_Rect dstrect = { static_cast<Sint16>(dstx), static_cast<Sint16>(dsty), 0, 0 };
SDL_BlitSurface(surface, &srcrect, target, &dstrect);
dstx += srcrect.w + char_spacing;
}