full arg parse

This commit is contained in:
2025-06-04 00:07:05 +02:00
parent 5ca191d14f
commit ebce03b49c
6 changed files with 154 additions and 14 deletions
+2 -1
View File
@@ -10,8 +10,9 @@ void generate_line(unsigned long y, char *data_buffer) {
memset(data_buffer, y, global_params.width * COLOR_DEPTH);
}
void generate(parameters params) {
int generate(parameters params) {
global_params = params;
bmp_generate(params.width, params.height, COLOR_DEPTH, params.file_path,
generate_line);
return 0;
}