diff -Nru rcsnao2d-0.0.2/debian/changelog rcsnao2d-0.0.2/debian/changelog --- rcsnao2d-0.0.2/debian/changelog 2011-04-08 07:34:09.000000000 +0000 +++ rcsnao2d-0.0.2/debian/changelog 2011-04-19 06:55:04.000000000 +0000 @@ -1,5 +1,5 @@ -rcsnao2d (0.0.2-5maverick) maverick; urgency=low +rcsnao2d (0.0.2-5maverick3) maverick; urgency=low - * Initial release + * x64 problem2 - -- Hossein Ansari Thu, 07 Apr 2011 16:28:33 +0430 + -- Hossein Ansari Tue, 19 Apr 2011 09:45:09 +0430 diff -Nru rcsnao2d-0.0.2/debian/patches/debian-changes-0.0.2-5maverick3 rcsnao2d-0.0.2/debian/patches/debian-changes-0.0.2-5maverick3 --- rcsnao2d-0.0.2/debian/patches/debian-changes-0.0.2-5maverick3 1970-01-01 00:00:00.000000000 +0000 +++ rcsnao2d-0.0.2/debian/patches/debian-changes-0.0.2-5maverick3 2011-04-19 06:55:11.000000000 +0000 @@ -0,0 +1,64 @@ +Description: Upstream changes introduced in version 0.0.2-5maverick3 + This patch has been created by dpkg-source during the package build. + Here's the last changelog entry, hopefully it gives details on why + those changes were made: + . + rcsnao2d (0.0.2-5maverick3) maverick; urgency=low + . + * x64 problem2 + . + The person named in the Author field signed this changelog entry. +Author: Hossein Ansari + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: http://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: + +--- rcsnao2d-0.0.2.orig/monitor.cpp ++++ rcsnao2d-0.0.2/monitor.cpp +@@ -65,7 +65,6 @@ Monitor::Monitor(QWidget *parent) : + + QPointF Monitor::scale(QPointF realPos){ + QPointF ret(center.x()+realPos.x()*scaleX,center.y()+realPos.y()*scaleY); +- + return ret; + } + +@@ -161,7 +160,6 @@ void Monitor::paintEvent(QPaintEvent */* + } + drawField(paint); + drawGoal(paint); +-// drawField(paint); + drawOtherLines(paint); + drawObjects ( paint , temp ) ; + paint.end(); +@@ -348,7 +346,7 @@ void Monitor::parseThing( string msg ) + str.push_back(' '); + } + +- unsigned int pos = str.find("team_left"); ++ size_t pos = str.find("team_left"); + string temp; + string he ; + stringstream ss ; +@@ -471,10 +469,8 @@ void Monitor::drawOtherLines(QPainter &p + paint.drawEllipse(scale(QPointF(0,0)) , scaleX*(centerRadius+0.01) ,scaleX*(centerRadius+0.01) ); + + paint.setBrush(Qt::white); +- paint.drawEllipse(scale(QPointF(0,0)) , 1 , 1 ); ++ paint.drawEllipse(scale(QPointF(0,0)) , 1 , 1 ); + +-// paint.drawEllipse(center , 0.05*z1 , 0.05*z1 ); +-// paint.drawLine( center + QPointF ( 0 , 6*z2 ) , center + QPointF ( 0 , -6*z2 ) ); + paint.drawLine(centerUp,centerDown); + + } diff -Nru rcsnao2d-0.0.2/debian/patches/series rcsnao2d-0.0.2/debian/patches/series --- rcsnao2d-0.0.2/debian/patches/series 2011-04-08 07:33:16.000000000 +0000 +++ rcsnao2d-0.0.2/debian/patches/series 2011-04-19 06:55:11.000000000 +0000 @@ -1,2 +1,3 @@ debian-changes-0.0.2-1 debian-changes-0.0.2-4maverick +debian-changes-0.0.2-5maverick3 diff -Nru rcsnao2d-0.0.2/debian/rules rcsnao2d-0.0.2/debian/rules --- rcsnao2d-0.0.2/debian/rules 2011-04-07 11:58:36.000000000 +0000 +++ rcsnao2d-0.0.2/debian/rules 2011-04-19 05:23:39.000000000 +0000 @@ -8,6 +8,19 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +LBITS := $(shell getconf LONG_BIT) +ifeq ($(LBITS),64) + CXXFLAGS = -O2 -m64 + CFLAGS = -O2 -m64 + export CXXFLAGS CFLAGS + +else + CXXFLAGS = -O2 -m32 + CFLAGS = -O2 -m32 + export CXXFLAGS CFLAGS + +endif + %: dh $@