Permalink
Browse files

native: fix FB compilation

Change-Id: Ib52cfe6c2a9f7dc45ffcc0dbe98e870bded32381
  • Loading branch information...
1 parent a2598c4 commit 7175a575ac4c2e906643a1a10a3fd705362a63e6 @FaultException FaultException committed with Whitehawkx Jul 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 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;

0 comments on commit 7175a57

Please sign in to comment.