DeskTop: Don't redraw hilited icons when obscured. Fixes #151

This commit is contained in:
Joshua Bell 2019-04-24 23:45:18 -07:00
parent e028076e0c
commit 462d3e1914
2 changed files with 4 additions and 2 deletions

View File

@ -740,7 +740,7 @@ Parameters:
.addr port address of GrafPort to populate
```
Returns `error_window_obscured` if the content area of the window is completely offscreen and drawing should be skipped. (The port rect will be invalid.)
Returns `Error::window_obscured` if the content area of the window is completely offscreen and drawing should be skipped. (The port rect will be invalid.)
#### SetWinPort ($3D)
@ -974,7 +974,7 @@ _Notes specific to DeskTop Desk Accessories (DA) are included where usage differ
#### Redraw window
* `GetWinPort` - populate a local GrafPort with an appropriately clipped port
* if `error_window_obscured` is returned, abort these steps (port will be invalid)
* if `Error::window_obscured` is returned, abort these steps (port will be invalid)
* `SetPort` - make it current
* optional: `HideCursor` - if multiple drawing calls will be made
* ... draw ...

View File

@ -297,6 +297,8 @@ bail: rts
copy active_window_id, getwinport_params2::window_id
jsr get_port2
cmp #MGTK::Error::window_obscured
beq done
jsr offset_grafport2_and_set
COPY_BLOCK grafport2::cliprect, tmp_rect