Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Don't waste time setting the dirty flag multip...
details: https://anonhg.NetBSD.org/src/rev/b2b6bfdf560d
branches: trunk
changeset: 1026414:b2b6bfdf560d
user: blymn <blymn%NetBSD.org@localhost>
date: Mon Nov 22 21:25:25 2021 +0000
description:
Don't waste time setting the dirty flag multiple times.
diffstat:
lib/libcurses/chgat.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 640496dba89e -r b2b6bfdf560d lib/libcurses/chgat.c
--- a/lib/libcurses/chgat.c Mon Nov 22 16:41:32 2021 +0000
+++ b/lib/libcurses/chgat.c Mon Nov 22 21:25:25 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chgat.c,v 1.7 2021/09/06 07:45:48 rin Exp $ */
+/* $NetBSD: chgat.c,v 1.8 2021/11/22 21:25:25 blymn Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: chgat.c,v 1.7 2021/09/06 07:45:48 rin Exp $");
+__RCSID("$NetBSD: chgat.c,v 1.8 2021/11/22 21:25:25 blymn Exp $");
#include "curses.h"
#include "curses_private.h"
@@ -82,8 +82,9 @@
if (x + win->ch_off + count > *lp->lastchp)
*lp->lastchp = x + win->ch_off + count;
+ lp->flags |= __ISDIRTY;
+
while (count-- > 0) {
- lp->flags |= __ISDIRTY;
#ifdef HAVE_WCHAR
lc->attr = (lc->attr & ~WA_ATTRIBUTES) | attr;
#else
Home |
Main Index |
Thread Index |
Old Index