mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Optimization: dont draw file chooser items above scissor area
This commit is contained in:
@@ -106,7 +106,7 @@ namespace gsr {
|
||||
mouse_over_item = i;
|
||||
}
|
||||
|
||||
if(item_pos.y + item_size.y >= draw_pos.y && item_pos.y < scissor.position.y + scissor.size.y) {
|
||||
if(item_pos.y + item_size.y >= scissor.position.y && item_pos.y < scissor.position.y + scissor.size.y) {
|
||||
window.draw(folder_sprite);
|
||||
|
||||
// TODO: Dont allow text to go further left/right than item_pos (on the left side) and item_pos + item_size (on the right side).
|
||||
|
||||
Reference in New Issue
Block a user