|
|
@ -34,14 +34,10 @@ print_gb(struct ncdirect* nc, int r, int total){
|
|
|
|
static int
|
|
|
|
static int
|
|
|
|
print_rgb8(struct ncdirect* nc, int total){
|
|
|
|
print_rgb8(struct ncdirect* nc, int total){
|
|
|
|
if(rand() % 2){
|
|
|
|
if(rand() % 2){
|
|
|
|
if(ncdirect_off_styles(nc, NCSTYLE_ITALIC)){
|
|
|
|
ncdirect_off_styles(nc, NCSTYLE_ITALIC);
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(rand() % 16 == 0){
|
|
|
|
if(rand() % 16 == 0){
|
|
|
|
if(ncdirect_on_styles(nc, NCSTYLE_ITALIC)){
|
|
|
|
ncdirect_on_styles(nc, NCSTYLE_ITALIC);
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for(int r = 0 ; r <= total && r < 256 ; r += 4){
|
|
|
|
for(int r = 0 ; r <= total && r < 256 ; r += 4){
|
|
|
|
if(print_gb(nc, r, total)){
|
|
|
|
if(print_gb(nc, r, total)){
|
|
|
@ -93,9 +89,7 @@ int main(void){
|
|
|
|
goto err;
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(ncdirect_set_styles(nc, NCSTYLE_ITALIC)){
|
|
|
|
ncdirect_set_styles(nc, NCSTYLE_ITALIC);
|
|
|
|
goto err;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
for(int t = 768 ; t ; t -= 4){
|
|
|
|
for(int t = 768 ; t ; t -= 4){
|
|
|
|
if(print_rgb8(nc, t)){
|
|
|
|
if(print_rgb8(nc, t)){
|
|
|
|
goto err;
|
|
|
|
goto err;
|
|
|
|