mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update source files for bracket style
This commit is contained in:
@@ -16,10 +16,11 @@ void LoadImage(CefRefPtr<CefImage> image,
|
||||
std::string image_str;
|
||||
|
||||
std::string name_str;
|
||||
if (scale_factor == 1.0f)
|
||||
if (scale_factor == 1.0f) {
|
||||
name_str = name + ".1x.png";
|
||||
else if (scale_factor == 2.0f)
|
||||
} else if (scale_factor == 2.0f) {
|
||||
name_str = name + ".2x.png";
|
||||
}
|
||||
|
||||
EXPECT_TRUE(client::LoadBinaryResource(name_str.c_str(), image_str));
|
||||
EXPECT_TRUE(image->AddPNG(scale_factor, image_str.c_str(), image_str.size()));
|
||||
|
Reference in New Issue
Block a user