]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/Sec/UgaX11.c
Revert r8771. UnixPkg has a custom RTC driver.
[mirror_edk2.git] / UnixPkg / Sec / UgaX11.c
index a3c152dac324653f10479bc82a1dd4982eb1f02b..1c68b328d35eadd6a02abfe857e6e65a5ab6f28e 100644 (file)
@@ -15,7 +15,6 @@
 #include <X11/extensions/XShm.h>
 #include <X11/keysym.h>
 
-#include <Guid/PeiPeCoffLoader.h>
 #include <Ppi/StatusCode.h>
 
 #include <Library/PeCoffLib.h>
@@ -171,6 +170,7 @@ UgaSize(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, UINT32 Width, UINT32 Height)
   /* Destroy current buffer if created.  */
   if (drv->image != NULL)
     {
+      /* Before destroy buffer, need to make sure the buffer available for access. */
       XDestroyImage(drv->image);
 
       if (drv->use_shm)