From patchwork Sat Feb 27 15:04:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TWFyY2luIEtvw4XigLpjaWVsbmlja2k=?= X-Patchwork-Id: 82597 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1RF6LWj011487 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 27 Feb 2010 15:07:00 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NlOEd-0006rk-CA; Sat, 27 Feb 2010 15:05:39 +0000 Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NlOEc-0006rS-0T for dri-devel@lists.sourceforge.net; Sat, 27 Feb 2010 15:05:38 +0000 X-ACL-Warn: Received: from pigasus.0x04.net ([85.222.19.84]) by sfi-mx-2.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1NlOEY-0003E0-OQ for dri-devel@lists.sourceforge.net; Sat, 27 Feb 2010 15:05:36 +0000 Received: by pigasus.0x04.net (Postfix, from userid 1000) id 6411058D1; Sat, 27 Feb 2010 15:04:47 +0000 (UTC) From: =?utf-8?q?Marcin=20Ko=C5=9Bcielnicki?= To: dri-devel@lists.sourceforge.net Subject: [PATCH 6/6] modes: vrefresh is actually not * 1000. Date: Sat, 27 Feb 2010 15:04:42 +0000 Message-Id: <1267283082-21586-6-git-send-email-koriakin@0x04.net> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1267283082-21586-5-git-send-email-koriakin@0x04.net> References: <1267283082-21586-1-git-send-email-koriakin@0x04.net> <1267283082-21586-2-git-send-email-koriakin@0x04.net> <1267283082-21586-3-git-send-email-koriakin@0x04.net> <1267283082-21586-4-git-send-email-koriakin@0x04.net> <1267283082-21586-5-git-send-email-koriakin@0x04.net> X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. _SUMMARY_ X-Headers-End: 1NlOEY-0003E0-OQ X-BeenThere: dri-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 27 Feb 2010 15:07:00 +0000 (UTC) diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c index 8971914..4c612f4 100644 --- a/tests/modeprint/modeprint.c +++ b/tests/modeprint/modeprint.c @@ -81,8 +81,8 @@ int printMode(struct drm_mode_modeinfo *mode) printf("\tvrefresh : %i\n", mode->vrefresh); printf("\tflags : %i\n", mode->flags); } else { - printf("Mode: \"%s\" %ix%i %.0f\n", mode->name, - mode->hdisplay, mode->vdisplay, mode->vrefresh / 1000.0); + printf("Mode: \"%s\" %ix%i %i\n", mode->name, + mode->hdisplay, mode->vdisplay, mode->vrefresh); } return 0; } diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index 3ca9d06..c12699c 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -143,9 +143,9 @@ void dump_encoders(void) void dump_mode(drmModeModeInfo *mode) { - printf(" %s %.02f %d %d %d %d %d %d %d %d\n", + printf(" %s %d %d %d %d %d %d %d %d %d\n", mode->name, - (float)mode->vrefresh / 1000, + mode->vrefresh, mode->hdisplay, mode->hsync_start, mode->hsync_end, diff --git a/xf86drmMode.h b/xf86drmMode.h index 44d90ed..ee7c454 100644 --- a/xf86drmMode.h +++ b/xf86drmMode.h @@ -181,7 +181,7 @@ typedef struct _drmModeModeInfo { uint16_t hdisplay, hsync_start, hsync_end, htotal, hskew; uint16_t vdisplay, vsync_start, vsync_end, vtotal, vscan; - uint32_t vrefresh; /* vertical refresh * 1000 */ + uint32_t vrefresh; uint32_t flags; uint32_t type;