This commit is contained in:
2025-06-03 20:47:32 +02:00
parent 4af50e5aa6
commit 19ade556b6
3 changed files with 5 additions and 5 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
#include "args.h"
const parameters EMPTY_PARAMS = {
0, 0, NULL, 0, 0.0, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}};
parameters parse_args(int argc, char **argv) {
parameters params = EMPTY_PARAMS;
parameters params;
params.width = 1920;
params.height = 1080;
-3
View File
@@ -18,7 +18,4 @@ typedef struct Parameters parameters;
parameters parse_args(int argc, char **argv);
const parameters EMPTY_PARAMS = {
0, 0, NULL, 0, 0.0, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}};
#endif
+1 -1
View File
@@ -4,7 +4,7 @@
#define COLOR_DEPTH 3
parameters global_params = EMPTY_PARAMS;
parameters global_params;
void generate_line(unsigned long y, char *data_buffer) {
memset(data_buffer, y, global_params.width * COLOR_DEPTH);