You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, shouldn't wpe_view_backend_dispatch_set_device_scale_factor() return an error or something when it receives a 0 factor? Because that's wrecking havoc :)
Probably we should check that the requested scaling factor is between reasonable limits, because I do not expect good things to happen by setting it too big either.
The text was updated successfully, but these errors were encountered:
Add a check to constraint the allowed device scale factors to the
[0.05, 5.0] range, ignoring values outside the interval. For debug
builds, an assertion will also make it easier for developers to fix
bugs in code that calls the function with invalid values.
Setting the device scale factor to unreasonably low values can result in
divisions by zero, wrong rendering, and/or odd behaviour in general;
while for too big values graphics buffers will consume unreasonably big
amounts of memory or the maximum usable size for them will result in
failure to allocate buffers and content being partially rendered (if at
all).
Fixes#89
Add a check to constraint the allowed device scale factors to the
[0.05, 5.0] range, ignoring values outside the interval. For debug
builds, an assertion will also make it easier for developers to fix
bugs in code that calls the function with invalid values.
Setting the device scale factor to unreasonably low values can result in
divisions by zero, wrong rendering, and/or odd behaviour in general;
while for too big values graphics buffers will consume unreasonably big
amounts of memory or the maximum usable size for them will result in
failure to allocate buffers and content being partially rendered (if at
all).
Fixes#89
Reported by @philn in Igalia/cog#384 (comment):
Probably we should check that the requested scaling factor is between reasonable limits, because I do not expect good things to happen by setting it too big either.
The text was updated successfully, but these errors were encountered: