tests: vrefresh is actually not * 1000.

main
Marcin Kościelnicki 2010-02-27 15:04:42 +00:00 committed by Jakob Bornecrantz
parent ecb668e1ef
commit 694ef59532
3 changed files with 5 additions and 5 deletions

View File

@ -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;
}

View File

@ -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,

View File

@ -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;