DouglasDwyer / octo-release

The Octo voxel game engine
277 stars 11 forks source link

window.devicePixelRatio is not considered when setting the canvas size #5

Closed Gbr22 closed 1 year ago

Gbr22 commented 1 year ago

image

window.devicePixelRatio is not considered when setting the canvas size leading to the canvas only filling a portion of the screen

You should be able to fix it by multiplying the width and height of the canvas with window.devicePixelRatio

DouglasDwyer commented 1 year ago

Thank you for opening this issue and letting me know! I will be sure to fix this in the next update.

DouglasDwyer commented 1 year ago

This issue has been fixed and will be included when the demo is next updated. I appreciate you bringing this to my attention :)