mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 13:48:02 +08:00
dialy commit
This commit is contained in:
parent
cbd3cab8a2
commit
083a9238d0
@ -193,7 +193,7 @@ DWORD GFXFillRect(HANDLE surface,const GFXRect*rect,UINT color){
|
||||
fb[x]=color;
|
||||
for(y=1;y<rec.h;y++){
|
||||
fb+=(ngs->pitch>>2);
|
||||
memcpy(fb,fbtop,rec.w*2);
|
||||
memcpy(fb,fbtop,rec.w*4);
|
||||
}
|
||||
return E_OK;
|
||||
}
|
||||
|
@ -71,9 +71,9 @@ static int getfeatures(int fd){
|
||||
source|=(1<<i);
|
||||
}
|
||||
}
|
||||
if(test_bit(ABS_MT_TOUCH_MAJOR,bitmask)
|
||||
&& test_bit(ABS_MT_POSITION_X,bitmask)
|
||||
&& test_bit(ABS_MT_POSITION_Y,bitmask)){
|
||||
if(test_bit(ABS_MT_TOUCH_MAJOR,(unsigned int*)bitmask)
|
||||
&& test_bit(ABS_MT_POSITION_X,(unsigned int*)bitmask)
|
||||
&& test_bit(ABS_MT_POSITION_Y,(unsigned int*)bitmask)){
|
||||
LOGD("fd %d is multitouchdevice!");
|
||||
}
|
||||
LOGD("fd:%d feature:%s source=%x",fd,features,source);
|
||||
|
@ -104,9 +104,11 @@ DWORD GFXFillRect(HANDLE surface,const GFXRect*rect,UINT color){
|
||||
for(x=0;x<rec.w;x++)fb[x]=color;
|
||||
for(y=1;y<rec.h;y++){
|
||||
fb+=(ngs->pitch>>2);
|
||||
memcpy(fb,fbtop,rec.w*2);
|
||||
memcpy(fb,fbtop,rec.w*4);
|
||||
}
|
||||
GFXFlip(surface);
|
||||
#ifdef ENABLE_RFB
|
||||
rfbMarkRectAsModified(rfbScreen,rec.x,rec.y,rec.w,rec.h);
|
||||
#endif
|
||||
return E_OK;
|
||||
}
|
||||
|
||||
@ -228,7 +230,9 @@ DWORD GFXBlit(HANDLE dstsurface,int dx,int dy,HANDLE srcsurface,const GFXRect*sr
|
||||
pbs+=nsrc->pitch;
|
||||
pbd+=ndst->pitch;
|
||||
}
|
||||
GFXFlip(dstsurface);
|
||||
#ifdef ENABLE_RFB
|
||||
rfbMarkRectAsModified(rfbScreen,dx,dy,dx+rs.w,dy+rs.h);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -151,10 +151,13 @@ DWORD GFXFillRect(HANDLE surface,const GFXRect*rect,UINT color){
|
||||
for(x=0;x<rec.w;x++)fb[x]=color;
|
||||
for(y=1;y<rec.h;y++){
|
||||
fb+=(img->bytes_per_line>>2);
|
||||
memcpy(fb,fbtop,rec.w*2);
|
||||
memcpy(fb,fbtop,rec.w*4);
|
||||
}
|
||||
if(surface==mainSurface){
|
||||
X11Expose(rec.x,rec.y,rec.w,rec.h);
|
||||
#if ENABLE_RFB
|
||||
rfbMarkRectAsModified(rfbScreen,rec.x,rec.y,rec.w,rec.h);
|
||||
#endif
|
||||
}
|
||||
return E_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user