[Emscripten] Fix disabling the vsync

This commit is contained in:
Rob Loach 2016-08-17 13:50:43 -04:00
parent eb83d6dfc0
commit 7602ce5bc9
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A

View File

@ -142,8 +142,11 @@ function stat(path)
function startRetroArch()
{
document.getElementById('canvas_div').style.display = 'block';
document.getElementById('vsync').disabled = true;
document.getElementById('vsync-label').style.color = 'gray';
// Disable the VSync option.
jQuery('#vsync')
.attr('disabled', true)
.parent('.form-check')
.addClass('disabled');
document.getElementById('latency').disabled = true;
document.getElementById('latency-label').style.color = 'gray';