blob: b60a068b4339a503b34344c3fe3aa0e77bbbcbc9 [file] [log] [blame]
#include <stdio.h>
#include <emscripten/emscripten.h>
int main()
{
double devicePixelRatio = emscripten_get_device_pixel_ratio();
printf("window.devicePixelRatio = %f.\n", devicePixelRatio);
int result = (devicePixelRatio > 0) ? 1 : 0;
if (result) {
printf("Test succeeded!\n");
}
#ifdef REPORT_RESULT
REPORT_RESULT(result);
#endif
}