mirror of
https://github.com/cy384/ssheven.git
synced 2026-05-21 06:45:34 -06:00
draw resize box
This commit is contained in:
parent
155caa5629
commit
96bb885279
2 changed files with 16 additions and 1 deletions
|
|
@ -97,6 +97,19 @@ void draw_screen(Rect* r)
|
|||
TextFont(save_font);
|
||||
TextSize(save_font_size);
|
||||
TextFace(save_font_face);
|
||||
|
||||
// draw the grow icon in the bottom right corner, but not the scroll bars
|
||||
// yes, this is really awkward
|
||||
MacRegion bottom_right_corner = { 10, con.win->portRect};
|
||||
MacRegion* brc = &bottom_right_corner;
|
||||
MacRegion** old = con.win->clipRgn;
|
||||
|
||||
bottom_right_corner.rgnBBox.top = bottom_right_corner.rgnBBox.bottom - 15;
|
||||
bottom_right_corner.rgnBBox.left = bottom_right_corner.rgnBBox.right - 15;
|
||||
|
||||
con.win->clipRgn = &brc;
|
||||
DrawGrowIcon(con.win);
|
||||
con.win->clipRgn = old;
|
||||
}
|
||||
|
||||
void ruler(Rect* r)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue