mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-24 09:40:53 +00:00
Fix blurred web page at fractional scaling.
This commit is contained in:
@@ -299,8 +299,12 @@ void Backend::NewFrame( int& w, int& h )
|
||||
|
||||
if( s_width != w || s_height != h )
|
||||
{
|
||||
EM_ASM( Module.canvas.style.width = window.innerWidth + 'px'; Module.canvas.style.height = window.innerHeight + 'px' );
|
||||
EM_ASM( Module.canvas.width = $0; Module.canvas.height = $1, w, h );
|
||||
EM_ASM( {
|
||||
Module.canvas.style.width = ($0 / $2) + 'px';
|
||||
Module.canvas.style.height = ($1 / $2) + 'px';
|
||||
Module.canvas.width = $0;
|
||||
Module.canvas.height = $1;
|
||||
}, w, h, double( scale ) );
|
||||
|
||||
s_width = w;
|
||||
s_height = h;
|
||||
|
||||
Reference in New Issue
Block a user