---
tests/modeprint/modeprint.c | 4 ++--
tests/modetest/modetest.c | 4 ++--
xf86drmMode.h | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
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;
--
1.6.4.4
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel