mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
LibGfx: Convert StringBuilder::appendf() => AK::Format
This commit is contained in:
parent
f0687dbbb7
commit
eb05931ab5
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue