summaryrefslogtreecommitdiff
path: root/fluid/app/templates.cxx
diff options
context:
space:
mode:
authormaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 02:33:41 +0500
committermaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 02:33:41 +0500
commit43e0a37906afabb0b3b091b8d3eac9a910cae50c (patch)
treed2a037c2bf0dc395fddb08e32ebfcf2795503b7c /fluid/app/templates.cxx
parent4ce4967c33d56e4b56d85d11fe0e0be91e159f5d (diff)
wip
Diffstat (limited to 'fluid/app/templates.cxx')
-rw-r--r--fluid/app/templates.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/app/templates.cxx b/fluid/app/templates.cxx
index 09fdc0220..8b9b69f2a 100644
--- a/fluid/app/templates.cxx
+++ b/fluid/app/templates.cxx
@@ -93,7 +93,7 @@ void fld::app::save_template() {
if (!fl_access(filename, 0)) {
if (fl_choice("The template \"%s\" already exists.\n"
"Do you want to replace it?", "Cancel",
- "Replace", nullptr, c) == 0) return;
+ "Replace", 0, c) == 0) return;
}
if (!fld::io::write_file(Fluid.proj, filename)) {
@@ -117,7 +117,7 @@ void fld::app::save_template() {
uchar *pixels;
int w, h;
- if ((pixels = wt->read_image(w, h)) == nullptr) return;
+ if ((pixels = wt->read_image(w, h)) == 0) return;
// Save to a PNG file...
strcpy(ext, ".png");