mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
impr: Added support for SVG loading, improved texture loading API
This commit is contained in:
@@ -129,7 +129,7 @@ namespace hex {
|
||||
pixel = ImAlphaBlendColors(pixel, ImColor(color));
|
||||
}
|
||||
|
||||
m_texture = ImGuiExt::Texture(reinterpret_cast<u8*>(pixels.data()), pixels.size() * 4, m_filter, 0xFF, 0xFF);
|
||||
m_texture = ImGuiExt::Texture::fromBitmap(reinterpret_cast<u8*>(pixels.data()), pixels.size() * 4, 0xFF, 0xFF, m_filter);
|
||||
m_textureValid = m_texture.isValid();
|
||||
}
|
||||
}
|
||||
@@ -252,7 +252,7 @@ namespace hex {
|
||||
pixel = ImAlphaBlendColors(pixel, ImColor(color));
|
||||
}
|
||||
|
||||
m_texture = ImGuiExt::Texture(reinterpret_cast<u8*>(pixels.data()), pixels.size() * 4, m_filter, 0xFF, 0xFF);
|
||||
m_texture = ImGuiExt::Texture::fromBitmap(reinterpret_cast<u8*>(pixels.data()), pixels.size() * 4, 0xFF, 0xFF, m_filter);
|
||||
m_textureValid = m_texture.isValid();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user