From 8de084334158138cfe577eb632d7131422ecce75 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sun, 6 Dec 2020 05:13:58 +0300 Subject: [PATCH] OpenCanopy: Do not try to draw cursor when pointer control is disabled --- Platform/OpenCanopy/OpenCanopy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Platform/OpenCanopy/OpenCanopy.c b/Platform/OpenCanopy/OpenCanopy.c index 88804d12..55c543a8 100644 --- a/Platform/OpenCanopy/OpenCanopy.c +++ b/Platform/OpenCanopy/OpenCanopy.c @@ -883,7 +883,9 @@ GuiFlushScreen ( ASSERT (DrawContext != NULL); ASSERT (DrawContext->Screen != NULL); - GuiRedrawPointer (DrawContext); + if (mPointerContext != NULL) { + GuiRedrawPointer (DrawContext); + } NumValidDrawReqs = mNumValidDrawReqs; ASSERT (NumValidDrawReqs <= ARRAY_SIZE (mDrawRequests)); -- GitLab