kopia lustrzana https://gitlab.com/sane-project/backends
				
				
				
			Fix the 0x0 geometry problem.
							rodzic
							
								
									c23cc87e52
								
							
						
					
					
						commit
						5503bf8e67
					
				| 
						 | 
				
			
			@ -493,6 +493,7 @@ init_options(SANE_String_Const name, escl_sane_t *s)
 | 
			
		|||
    s->opt[OPT_TL_X].unit = SANE_UNIT_MM;
 | 
			
		||||
    s->opt[OPT_TL_X].constraint_type = SANE_CONSTRAINT_RANGE;
 | 
			
		||||
    s->opt[OPT_TL_X].constraint.range = &s->x_range;
 | 
			
		||||
    s->val[OPT_TL_X].w = 0;
 | 
			
		||||
 | 
			
		||||
    s->opt[OPT_TL_Y].name = SANE_NAME_SCAN_TL_Y;
 | 
			
		||||
    s->opt[OPT_TL_Y].title = SANE_TITLE_SCAN_TL_Y;
 | 
			
		||||
| 
						 | 
				
			
			@ -503,6 +504,7 @@ init_options(SANE_String_Const name, escl_sane_t *s)
 | 
			
		|||
    s->opt[OPT_TL_Y].unit = SANE_UNIT_MM;
 | 
			
		||||
    s->opt[OPT_TL_Y].constraint_type = SANE_CONSTRAINT_RANGE;
 | 
			
		||||
    s->opt[OPT_TL_Y].constraint.range = &s->y_range;
 | 
			
		||||
    s->val[OPT_TL_Y].w = 0;
 | 
			
		||||
 | 
			
		||||
    s->opt[OPT_BR_X].name = SANE_NAME_SCAN_BR_X;
 | 
			
		||||
    s->opt[OPT_BR_X].title = SANE_TITLE_SCAN_BR_X;
 | 
			
		||||
| 
						 | 
				
			
			@ -513,6 +515,7 @@ init_options(SANE_String_Const name, escl_sane_t *s)
 | 
			
		|||
    s->opt[OPT_BR_X].unit = SANE_UNIT_MM;
 | 
			
		||||
    s->opt[OPT_BR_X].constraint_type = SANE_CONSTRAINT_RANGE;
 | 
			
		||||
    s->opt[OPT_BR_X].constraint.range = &s->x_range;
 | 
			
		||||
    s->val[OPT_BR_X].w = s->x_range.max;
 | 
			
		||||
 | 
			
		||||
    s->opt[OPT_BR_Y].name = SANE_NAME_SCAN_BR_Y;
 | 
			
		||||
    s->opt[OPT_BR_Y].title = SANE_TITLE_SCAN_BR_Y;
 | 
			
		||||
| 
						 | 
				
			
			@ -523,6 +526,7 @@ init_options(SANE_String_Const name, escl_sane_t *s)
 | 
			
		|||
    s->opt[OPT_BR_Y].unit = SANE_UNIT_MM;
 | 
			
		||||
    s->opt[OPT_BR_Y].constraint_type = SANE_CONSTRAINT_RANGE;
 | 
			
		||||
    s->opt[OPT_BR_Y].constraint.range = &s->y_range;
 | 
			
		||||
    s->val[OPT_BR_Y].w = s->y_range.max;
 | 
			
		||||
    return (status);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue