Skip to content

Commit

Permalink
Format gpl file correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kanurag94 committed Aug 11, 2020
1 parent 185b18e commit 54349e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui-hlp/menu.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <cerrno>
#include <cstring>
#include <cstdlib>
#include <iomanip>
#include <QFile>
#include <QTextStream>
#include <QMessageBox>
Expand Down Expand Up @@ -815,7 +816,9 @@ static void uih_savegpl(struct uih_context *uih, xio_constpath d) {
stream << "Name: XaoS_Palette" << "\n";
stream << "Columns: 16" << "\n" << "#" << "\n";
for(int i=0; i < 31; i++){
stream << (int)colors[i][0] << " " << (int)colors[i][1] << " " << (int)colors[i][2] << "\n";
char s[256];
sprintf(s, "%3d %3d %3d", colors[i][0], colors[i][1], colors[i][2]);
stream << s << "\t color_" << QString::number(i) << "\n";
}
savefile->close();
char s[256];
Expand Down

0 comments on commit 54349e8

Please sign in to comment.