mirror of
https://github.com/mi57730/a2d.git
synced 2024-06-09 05:29:28 +00:00
DeskTop: Don't redraw hilited icons when obscured. Fixes #151
This commit is contained in:
parent
e028076e0c
commit
462d3e1914
4
MGTK.md
4
MGTK.md
|
@ -740,7 +740,7 @@ Parameters:
|
||||||
.addr port address of GrafPort to populate
|
.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)
|
#### SetWinPort ($3D)
|
||||||
|
@ -974,7 +974,7 @@ _Notes specific to DeskTop Desk Accessories (DA) are included where usage differ
|
||||||
#### Redraw window
|
#### Redraw window
|
||||||
|
|
||||||
* `GetWinPort` - populate a local GrafPort with an appropriately clipped port
|
* `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
|
* `SetPort` - make it current
|
||||||
* optional: `HideCursor` - if multiple drawing calls will be made
|
* optional: `HideCursor` - if multiple drawing calls will be made
|
||||||
* ... draw ...
|
* ... draw ...
|
||||||
|
|
|
@ -297,6 +297,8 @@ bail: rts
|
||||||
|
|
||||||
copy active_window_id, getwinport_params2::window_id
|
copy active_window_id, getwinport_params2::window_id
|
||||||
jsr get_port2
|
jsr get_port2
|
||||||
|
cmp #MGTK::Error::window_obscured
|
||||||
|
beq done
|
||||||
jsr offset_grafport2_and_set
|
jsr offset_grafport2_and_set
|
||||||
|
|
||||||
COPY_BLOCK grafport2::cliprect, tmp_rect
|
COPY_BLOCK grafport2::cliprect, tmp_rect
|
||||||
|
|
Loading…
Reference in New Issue
Block a user