You can now safely move the overlay off screen completely, without having to
worry that the graphics chip is fried. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17410 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
41fc107e0a
commit
6bd70a559d
@ -551,6 +551,11 @@ intel_configure_overlay(overlay_token overlayToken, const overlay_buffer *buffer
|
||||
right = gInfo->shared_info->current_mode.timing.h_display;
|
||||
if (bottom > gInfo->shared_info->current_mode.timing.v_display)
|
||||
bottom = gInfo->shared_info->current_mode.timing.v_display;
|
||||
if (left >= right || top >= bottom) {
|
||||
// overlay is not within visible bounds
|
||||
hide_overlay();
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
registers->window_left = left;
|
||||
registers->window_top = top;
|
||||
|
Loading…
Reference in New Issue
Block a user