|
- buffer_rgb=pBuf; //指到开始的地方
- for(j=Origin_Y;j<76*YScale+Origin_Y;j++)
- {
- if(256*2*XScale>(LCD_XSize-Origin_X)*2)
- {
- memcpy((void *)(gdwDisplayAddress+LCD_XSize*2*j+Origin_X*2),(void *)buffer_rgb,2*(LCD_XSize-Origin_X));
- buffer_rgb += 256*2*XScale;
-
- }
- else
- {
- memcpy((void *)(gdwDisplayAddress+LCD_XSize*2*j+Origin_X*2),(void *)buffer_rgb,256*2*XScale);
- buffer_rgb += 256*2*XScale;
- }
-
-
-
- }
复制代码 |
|