Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

native: fix FB compilation

Change-Id: Ib52cfe6c2a9f7dc45ffcc0dbe98e870bded32381
  • Loading branch information...
commit 7175a575ac4c2e906643a1a10a3fd705362a63e6 1 parent a2598c4
@FaultException FaultException authored Whitehawkx committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 libs/ui/FramebufferNativeWindow.cpp
View
5 libs/ui/FramebufferNativeWindow.cpp
@@ -97,12 +97,13 @@ FramebufferNativeWindow::FramebufferNativeWindow()
mUpdateOnDemand = (fbDev->setUpdateRect != 0);
// initialize the buffer FIFO
+ mNumBuffers = MIN_NUM_FRAME_BUFFERS;
+#ifdef QCOM_HARDWARE
if(fbDev->numFramebuffers >= MIN_NUM_FRAME_BUFFERS &&
fbDev->numFramebuffers <= MAX_NUM_FRAME_BUFFERS){
mNumBuffers = fbDev->numFramebuffers;
- } else {
- mNumBuffers = MIN_NUM_FRAME_BUFFERS;
}
+#endif
mNumFreeBuffers = mNumBuffers;
mBufferHead = mNumBuffers-1;
Please sign in to comment.
Something went wrong with that request. Please try again.