View | Details | Raw Unified | Return to bug 261826 | Differences between
and this patch

Collapse All | Expand All

(-)b/emulators/joytran/Makefile (+1 lines)
Lines 21-26 OPTIONS_DEFINE= DOCS Link Here
21
21
22
post-patch:
22
post-patch:
23
	@${REINPLACE_CMD} -e '/WARNING_FLAGS/s,-pedantic,& -fcommon,' \
23
	@${REINPLACE_CMD} -e '/WARNING_FLAGS/s,-pedantic,& -fcommon,' \
24
		-e 's| -Werror||g' \
24
		${WRKSRC}/CMakeLists.txt
25
		${WRKSRC}/CMakeLists.txt
25
26
26
post-install:
27
post-install:
(-)b/emulators/joytran/files/patch-src_generate__events.c (+11 lines)
Added Link Here
1
--- src/generate_events.c.orig	2014-05-20 06:05:31 UTC
2
+++ src/generate_events.c
3
@@ -147,7 +147,7 @@ void generate_relative_motion_event2(int xMove, int yM
4
 /* my own (first?) line algorithm, not as good as Bresenham's line algorithm,
5
    though.  Not very good. */
6
 void generate_relative_motion_event(int xpps, int ypps) {
7
-  int i = 0, x = 0, y = 0, delay = 0, xdelay, ydelay;
8
+  int i = 0, x = 0, y = 0, delay, xdelay, ydelay;
9
   int axpps = abs(xpps), aypps = abs(ypps);
10
   if (axpps < 1000) { x = make1(xpps); }
11
   else { x = xpps / 1000; }

Return to bug 261826