mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-02 04:07:42 +08:00
Revert "improve compose speed of x86 xlib"
This reverts commit 0a37b20453
.
This commit is contained in:
parent
f4ad3bba8c
commit
3dab39fbba
@ -24,11 +24,6 @@ public:
|
||||
{View*v=LayoutInflater::from(container->getContext())->inflate(res[position-2],nullptr,false);
|
||||
container->addView(v);
|
||||
v->requestLayout();
|
||||
View*btn=v->findViewById(uidemo::R::id::button1);
|
||||
if(btn)btn->setOnClickListener([](View&v){
|
||||
Window*w=new Window(0,0,400,400);
|
||||
w->setBackgroundColor(0xFF123456);
|
||||
});
|
||||
return v;
|
||||
}break;
|
||||
case 0:
|
||||
@ -71,7 +66,7 @@ public:
|
||||
}
|
||||
});
|
||||
gv->setVerticalScrollBarEnabled(true);
|
||||
gv->setNumColumns(2);
|
||||
gv->setNumColumns(3);
|
||||
gv->setAdapter(adapter);
|
||||
gv->setHorizontalSpacing(2);
|
||||
gv->setVerticalSpacing(2);
|
||||
|
@ -2851,7 +2851,7 @@ void AbsListView::onTouchUp(MotionEvent&ev) {
|
||||
// Since we can potentially overfling more than we can overscroll, don't
|
||||
// allow the weird behavior where you can scroll to a boundary then
|
||||
// fling further.
|
||||
LOGV("Velocity [%d]%d:(%d,%d)",mActivePointerId,initialVelocity,mMinimumVelocity,mMaximumVelocity);
|
||||
LOGD("Velocity [%d]%d:(%d,%d)",mActivePointerId,initialVelocity,mMinimumVelocity,mMaximumVelocity);
|
||||
bool flingVelocity = std::abs(initialVelocity) > mMinimumVelocity;
|
||||
if (flingVelocity && !((mFirstPosition == 0 &&
|
||||
firstChildTop == contentTop - mOverscrollDistance) ||
|
||||
|
@ -100,7 +100,7 @@ void AnalogClock::onAttachedToWindow(){
|
||||
mSeconds=when.tm_sec;
|
||||
mChanged = true;
|
||||
invalidate(true);
|
||||
postDelayed(mTick,500);
|
||||
postDelayed(mTick,800);
|
||||
};
|
||||
postDelayed(mTick,800);
|
||||
}
|
||||
|
@ -2084,10 +2084,10 @@ void ViewGroup::addFocusables(std::vector<View*>& views, int direction, int focu
|
||||
}
|
||||
|
||||
std::vector<View*> children;
|
||||
for(auto c:mChildren){
|
||||
for_each(mChildren.begin(),mChildren.end(),[&children](View*c){
|
||||
if(c->getVisibility()==View::VISIBLE)
|
||||
children.push_back(c);
|
||||
};
|
||||
});
|
||||
FocusFinder::sort(children, 0, children.size(), this, isLayoutRtl());
|
||||
for (int i = 0; i < children.size(); ++i) {
|
||||
children[i]->addFocusables(views, direction, focusableMode);
|
||||
|
@ -173,9 +173,9 @@ DWORD GFXFlip(HANDLE surface){
|
||||
XImage *img=(XImage*)surface;
|
||||
if(mainSurface==surface){
|
||||
GFXRect rect={0,0,img->width,img->height};
|
||||
//X11Expose(0,0,img->width,img->height);
|
||||
X11Expose(0,0,img->width,img->height);
|
||||
#if ENABLE_RFB
|
||||
//rfbMarkRectAsModified(rfbScreen,rect.x,rect.y,rect.w,rect.h);
|
||||
rfbMarkRectAsModified(rfbScreen,rect.x,rect.y,rect.w,rect.h);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user