openbsd-ports/devel/libuta/patches/patch-uta_blitters_cc
pvalchev f82b4f5467 fix some stupid typos in the non-i386 code that prevented this from
compiling on anything but i386
beatify other part while here

sparc breakage reported to me by naddy a while ago, tested on ppc
2001-09-06 23:23:56 +00:00

37 lines
946 B
Plaintext

$OpenBSD: patch-uta_blitters_cc,v 1.2 2001/09/06 23:23:56 pvalchev Exp $
--- uta/blitters.cc.orig Mon Apr 9 17:25:05 2001
+++ uta/blitters.cc Wed Sep 5 16:45:59 2001
@@ -1,9 +1,12 @@
#include "blitters.h"
-#include <uta/painter.h>
+#include <painter.h>
namespace uta {
-#ifndef X86_ASSEMBLER
+#ifdef __OpenBSD__
+#undef X86_ASSEMBLER
+#endif
+#if !defined(X86_ASSEMBLER)
/** Apply const gamma value.
Blit just copies alpha value of the source to the destination surface.
@@ -1599,7 +1602,7 @@ void gammablit(Surface* dst, const Surfa
gammablit_C(dst,src,g,srcRect,dstPoint);
}
#else
- gammablit_C(dst,src,g,srcRect,dstPoint)
+ gammablit_C(dst,src,g,srcRect,dstPoint);
#endif
}
@@ -1626,7 +1629,7 @@ void gammablit(Surface* dst, const Surfa
gammablit_C(dst,src,func,srcRect,dstPoint);
}
#else
- gammablit_C(dst,src,func,srcRect,dstPoint)
+ gammablit_C(dst,src,func,srcRect,dstPoint);
#endif
}