arudradey/fullhtml-storage / emsdk /upstream /emscripten /test /emscripten_get_device_pixel_ratio.c
arudradey's picture
download
raw
262 Bytes
#include <assert.h>
#include <stdio.h>
#include <emscripten/emscripten.h>
int main() {
double devicePixelRatio = emscripten_get_device_pixel_ratio();
printf("window.devicePixelRatio = %f.\n", devicePixelRatio);
assert(devicePixelRatio > 0);
return 0;
}

Xet Storage Details

Size:
262 Bytes
·
Xet hash:
bbd38bca24cefc9956361b9eb754ba8091f77bb6330357d5222184301e85ac74

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.