mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-05 07:01:11 -08:00
Fix more NS_DRAW_TO_BUFFER #ifdefs (bug#39883)
* src/nsterm.m (ns_update_end): Make sure the frame is updated after drawing. (ns_focus): (ns_unfocus): Should be checking on NS_DRAW_TO_BUFFER rather than if it's Cocoa or GNUstep.
This commit is contained in:
parent
cf45e8022e
commit
d1bbd32dba
1 changed files with 4 additions and 7 deletions
11
src/nsterm.m
11
src/nsterm.m
|
|
@ -1141,6 +1141,7 @@ ns_update_end (struct frame *f)
|
|||
|
||||
#ifdef NS_DRAW_TO_BUFFER
|
||||
[NSGraphicsContext setCurrentContext:nil];
|
||||
[view setNeedsDisplay:YES];
|
||||
#else
|
||||
block_input ();
|
||||
|
||||
|
|
@ -1194,12 +1195,6 @@ ns_focus (struct frame *f, NSRect *r, int n)
|
|||
/* clipping */
|
||||
if (r)
|
||||
{
|
||||
#ifdef NS_IMPL_COCOA
|
||||
int i;
|
||||
for (i = 0 ; i < n ; i++)
|
||||
[view setNeedsDisplayInRect:r[i]];
|
||||
#endif
|
||||
|
||||
[[NSGraphicsContext currentContext] saveGraphicsState];
|
||||
if (n == 2)
|
||||
NSRectClipList (r, 2);
|
||||
|
|
@ -1224,7 +1219,9 @@ ns_unfocus (struct frame *f)
|
|||
gsaved = NO;
|
||||
}
|
||||
|
||||
#ifdef NS_IMPL_GNUSTEP
|
||||
#ifdef NS_DRAW_TO_BUFFER
|
||||
[FRAME_NS_VIEW (f) setNeedsDisplay:YES];
|
||||
#else
|
||||
if (f != ns_updating_frame)
|
||||
{
|
||||
if (focus_view != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue