mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Oops, fix a bug that caused updates to the screen to happen, without
anything actually changed, in this case the mousepointer logic.
This commit is contained in:
parent
ad771aa134
commit
ab35f219ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16567
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: syscons.c,v 1.151 1996/06/17 17:21:35 wpaul Exp $
|
||||
* $Id: syscons.c,v 1.152 1996/06/21 07:19:17 sos Exp $
|
||||
*/
|
||||
|
||||
#include "sc.h"
|
||||
@ -1389,6 +1389,7 @@ static void
|
||||
scrn_timer()
|
||||
{
|
||||
static int cursor_blinkrate;
|
||||
static ushort *last_mouse_pos = NULL;
|
||||
scr_stat *scp = cur_console;
|
||||
|
||||
/* should we just return ? */
|
||||
@ -1405,10 +1406,13 @@ scrn_timer()
|
||||
scp->status &= ~CURSOR_SHOWN;
|
||||
scp->start = scp->xsize * scp->ysize;
|
||||
scp->end = 0;
|
||||
last_mouse_pos = NULL;
|
||||
}
|
||||
/* update "pseudo" mouse arrow */
|
||||
if (scp->status & MOUSE_ENABLED)
|
||||
if (scp->mouse_pos != last_mouse_pos && (scp->status & MOUSE_ENABLED)) {
|
||||
last_mouse_pos = scp->mouse_pos;
|
||||
draw_mouse_image(scp);
|
||||
}
|
||||
|
||||
/* update cursor image */
|
||||
if (scp->status & CURSOR_ENABLED)
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: syscons.c,v 1.151 1996/06/17 17:21:35 wpaul Exp $
|
||||
* $Id: syscons.c,v 1.152 1996/06/21 07:19:17 sos Exp $
|
||||
*/
|
||||
|
||||
#include "sc.h"
|
||||
@ -1389,6 +1389,7 @@ static void
|
||||
scrn_timer()
|
||||
{
|
||||
static int cursor_blinkrate;
|
||||
static ushort *last_mouse_pos = NULL;
|
||||
scr_stat *scp = cur_console;
|
||||
|
||||
/* should we just return ? */
|
||||
@ -1405,10 +1406,13 @@ scrn_timer()
|
||||
scp->status &= ~CURSOR_SHOWN;
|
||||
scp->start = scp->xsize * scp->ysize;
|
||||
scp->end = 0;
|
||||
last_mouse_pos = NULL;
|
||||
}
|
||||
/* update "pseudo" mouse arrow */
|
||||
if (scp->status & MOUSE_ENABLED)
|
||||
if (scp->mouse_pos != last_mouse_pos && (scp->status & MOUSE_ENABLED)) {
|
||||
last_mouse_pos = scp->mouse_pos;
|
||||
draw_mouse_image(scp);
|
||||
}
|
||||
|
||||
/* update cursor image */
|
||||
if (scp->status & CURSOR_ENABLED)
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: syscons.c,v 1.151 1996/06/17 17:21:35 wpaul Exp $
|
||||
* $Id: syscons.c,v 1.152 1996/06/21 07:19:17 sos Exp $
|
||||
*/
|
||||
|
||||
#include "sc.h"
|
||||
@ -1389,6 +1389,7 @@ static void
|
||||
scrn_timer()
|
||||
{
|
||||
static int cursor_blinkrate;
|
||||
static ushort *last_mouse_pos = NULL;
|
||||
scr_stat *scp = cur_console;
|
||||
|
||||
/* should we just return ? */
|
||||
@ -1405,10 +1406,13 @@ scrn_timer()
|
||||
scp->status &= ~CURSOR_SHOWN;
|
||||
scp->start = scp->xsize * scp->ysize;
|
||||
scp->end = 0;
|
||||
last_mouse_pos = NULL;
|
||||
}
|
||||
/* update "pseudo" mouse arrow */
|
||||
if (scp->status & MOUSE_ENABLED)
|
||||
if (scp->mouse_pos != last_mouse_pos && (scp->status & MOUSE_ENABLED)) {
|
||||
last_mouse_pos = scp->mouse_pos;
|
||||
draw_mouse_image(scp);
|
||||
}
|
||||
|
||||
/* update cursor image */
|
||||
if (scp->status & CURSOR_ENABLED)
|
||||
|
Loading…
Reference in New Issue
Block a user