mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
ObservableSetting
This commit is contained in:
parent
4861fedf1e
commit
6650e27737
4 changed files with 47 additions and 99 deletions
|
|
@ -107,11 +107,11 @@ void Engine::updateHotkeys() {
|
|||
}
|
||||
|
||||
void Engine::saveScreenshot() {
|
||||
std::unique_ptr<ImageData> image(Window::takeScreenshot());
|
||||
auto image = Window::takeScreenshot();
|
||||
image->flipY();
|
||||
fs::path filename = paths->getScreenshotFile("png");
|
||||
imageio::write(filename.string(), image.get());
|
||||
logger.info() << "saved screenshot as "+filename.u8string();
|
||||
logger.info() << "saved screenshot as " << filename.u8string();
|
||||
}
|
||||
|
||||
void Engine::mainloop() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue