超级IC卡暂存
This commit is contained in:
+1
-2
@@ -2746,12 +2746,10 @@ void MainWidget::onPreviewScene()
|
||||
else
|
||||
{ //Y = 0.299*R' + 0.587*G' + 0.114*B //非变量
|
||||
int y = (((rgb&0xff)*299 + ((rgb>>8)&0xff)*587 + ((rgb>>16)&0xff)*114))/1000;
|
||||
//qDebug()<<"y:"<<y;
|
||||
if(y < 125 ){
|
||||
dat[MAX_PRINT_ROW_BYTE_NUM*(i+(sysPara->status.addSpace?i:0)) + j/8] |= 1 << (j%8); //画黑点
|
||||
if((j+1) > sysPara->status.currPrintRow) {
|
||||
sysPara->status.currPrintRow = j+1;
|
||||
//qDebug()<<"dddd currPrintRow:"<< sysPara->status.currPrintRow;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3024,6 +3022,7 @@ void MainWidget::onPreviewScene()
|
||||
for(int i = item_x_start_pos; i < item_x_end_pos; i++){
|
||||
for(int j = item_y_start_pos; j < item_y_end_pos; j++){
|
||||
dat[MAX_PRINT_ROW_BYTE_NUM*(i+(sysPara->status.addSpace?0:0)) + j/8] &= ~(1 << (j%8)); //将画点取消掉
|
||||
dat[MAX_PRINT_ROW_BYTE_NUM*(i+(sysPara->status.addSpace?0:0)) + j/8] &= ~(1 << (j%8));
|
||||
}
|
||||
}
|
||||
sysPara->status.vars[myvariNum].height = textrx.cap(5).toInt(&ok)-1;
|
||||
|
||||
Reference in New Issue
Block a user