Loading common/gal/cairo/cairo_gal.cpp +14 −2 Original line number Diff line number Diff line Loading @@ -496,7 +496,12 @@ void CAIRO_GAL::SetLineWidth( double aLineWidth ) storePath(); lineWidth = aLineWidth; cairo_set_line_width( cairoImage, aLineWidth ); // Make lines appear at least 1 pixel wide, no matter of zoom double x = 1.0, y = 1.0; cairo_device_to_user_distance( cairoImage, &x, &y ); double minWidth = std::min( fabs( x ), fabs( y ) ); cairo_set_line_width( cairoImage, std::max( aLineWidth, minWidth ) ); if( isGrouping ) { Loading Loading @@ -716,9 +721,16 @@ void CAIRO_GAL::DrawGroup( int aGroupNumber ) break; case CMD_SET_LINE_WIDTH: cairo_set_line_width( cairoImage, it->arguments[0] ); { // Make lines appear at least 1 pixel wide, no matter of zoom double x = 1.0, y = 1.0; cairo_device_to_user_distance( cairoImage, &x, &y ); double minWidth = std::min( fabs( x ), fabs( y ) ); cairo_set_line_width( cairoImage, std::max( it->arguments[0], minWidth ) ); } break; case CMD_STROKE_PATH: cairo_set_source_rgb( cairoImage, strokeColor.r, strokeColor.g, strokeColor.b ); cairo_append_path( cairoImage, it->cairoPath ); Loading Loading
common/gal/cairo/cairo_gal.cpp +14 −2 Original line number Diff line number Diff line Loading @@ -496,7 +496,12 @@ void CAIRO_GAL::SetLineWidth( double aLineWidth ) storePath(); lineWidth = aLineWidth; cairo_set_line_width( cairoImage, aLineWidth ); // Make lines appear at least 1 pixel wide, no matter of zoom double x = 1.0, y = 1.0; cairo_device_to_user_distance( cairoImage, &x, &y ); double minWidth = std::min( fabs( x ), fabs( y ) ); cairo_set_line_width( cairoImage, std::max( aLineWidth, minWidth ) ); if( isGrouping ) { Loading Loading @@ -716,9 +721,16 @@ void CAIRO_GAL::DrawGroup( int aGroupNumber ) break; case CMD_SET_LINE_WIDTH: cairo_set_line_width( cairoImage, it->arguments[0] ); { // Make lines appear at least 1 pixel wide, no matter of zoom double x = 1.0, y = 1.0; cairo_device_to_user_distance( cairoImage, &x, &y ); double minWidth = std::min( fabs( x ), fabs( y ) ); cairo_set_line_width( cairoImage, std::max( it->arguments[0], minWidth ) ); } break; case CMD_STROKE_PATH: cairo_set_source_rgb( cairoImage, strokeColor.r, strokeColor.g, strokeColor.b ); cairo_append_path( cairoImage, it->cairoPath ); Loading