mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
LibGfx: Convert StringBuilder::appendf() => AK::Format
This commit is contained in:
parent
f0687dbbb7
commit
eb05931ab5
Notes:
sideshowbarker
2024-07-18 18:35:17 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/eb05931ab50
@ -129,9 +129,9 @@ RefPtr<Bitmap> Bitmap::load_from_file(String const& path, int scale_factor)
|
||||
LexicalPath lexical_path { path };
|
||||
StringBuilder highdpi_icon_path;
|
||||
highdpi_icon_path.append(lexical_path.dirname());
|
||||
highdpi_icon_path.append("/");
|
||||
highdpi_icon_path.append('/');
|
||||
highdpi_icon_path.append(lexical_path.title());
|
||||
highdpi_icon_path.appendf("-%dx.", scale_factor);
|
||||
highdpi_icon_path.appendff("-{}x.", scale_factor);
|
||||
highdpi_icon_path.append(lexical_path.extension());
|
||||
|
||||
RefPtr<Bitmap> bmp;
|
||||
|
@ -197,7 +197,7 @@ String Path::to_string() const
|
||||
builder.append("Invalid");
|
||||
break;
|
||||
}
|
||||
builder.appendf("(%s", segment.point().to_string().characters());
|
||||
builder.appendff("({}", segment.point());
|
||||
|
||||
switch (segment.type()) {
|
||||
case Segment::Type::QuadraticBezierCurveTo:
|
||||
|
Loading…
Reference in New Issue
Block a user