Alive member initialization.

This commit is contained in:
jief 2020-03-09 12:35:14 +03:00
parent 08e3321e45
commit 8ebb863d4f
2 changed files with 5 additions and 4 deletions

View File

@ -26,9 +26,9 @@
#define POINTER_HEIGHT 64
XPointer::XPointer()
: PointerImage(NULL),
newImage(POINTER_WIDTH, POINTER_HEIGHT),
oldImage(POINTER_WIDTH, POINTER_HEIGHT)
: SimplePointerProtocol(NULL), PointerImage(NULL),
// newImage(POINTER_WIDTH, POINTER_HEIGHT),
oldImage(0, 0), Alive(false)
{
}
@ -89,6 +89,7 @@ EFI_STATUS XPointer::MouseBirth()
}
// Now update image because of other theme has other image
PointerImage = new XImage(BuiltinIcon(BUILTIN_ICON_POINTER));
oldImage.setSizeInPixels(PointerImage->GetWidth(), PointerImage->GetHeight());
LastClickTime = 0;
oldPlace.XPos = (INTN)(UGAWidth >> 2);
oldPlace.YPos = (INTN)(UGAHeight >> 2);

View File

@ -15,7 +15,7 @@ public:
protected:
EFI_SIMPLE_POINTER_PROTOCOL *SimplePointerProtocol;
XImage* PointerImage;
XImage newImage;
// XImage newImage;
XImage oldImage;
EG_RECT newPlace;