mirror of
https://github.com/holub/mame
synced 2025-06-03 11:26:56 +03:00
(nw) Fixed the build.
This commit is contained in:
parent
2e7037e251
commit
bad461d288
@ -324,18 +324,15 @@ void shaders::render_snapshot(IDirect3DSurface9 *surface)
|
||||
// add two text entries describing the image
|
||||
std::string text1 = std::string(emulator_info::get_appname()).append(" ").append(emulator_info::get_build_version());
|
||||
std::string text2 = std::string(machine->system().manufacturer).append(" ").append(machine->system().type.fullname());
|
||||
png_info pnginfo = { nullptr };
|
||||
png_add_text(&pnginfo, "Software", text1.c_str());
|
||||
png_add_text(&pnginfo, "System", text2.c_str());
|
||||
png_info pnginfo;
|
||||
pnginfo.add_text("Software", text1.c_str());
|
||||
pnginfo.add_text("System", text2.c_str());
|
||||
|
||||
// now do the actual work
|
||||
png_error error = png_write_bitmap(file, &pnginfo, snapshot, 1 << 24, nullptr);
|
||||
if (error != PNGERR_NONE)
|
||||
osd_printf_error("Error generating PNG for HLSL snapshot: png_error = %d\n", error);
|
||||
|
||||
// free any data allocated
|
||||
png_free(&pnginfo);
|
||||
|
||||
result = snap_copy_target->UnlockRect();
|
||||
if (FAILED(result))
|
||||
osd_printf_verbose("Direct3D: Error %08lX during texture UnlockRect call\n", result);
|
||||
|
Loading…
Reference in New Issue
Block a user