dialy commit

This commit is contained in:
侯歌 2022-01-12 18:28:52 +08:00
parent cbd3cab8a2
commit 083a9238d0
4 changed files with 15 additions and 8 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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;
}

View File

@ -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;
}