-# simplexpm
+# xpmview
-simplexpm is a simple GUI application used to view XPM image files.
+xpmview is a simple GUI application used to view XPM image files.
## Building
This repository uses submodules, so you'll need to clone it recursively.
```console
-> git clone --recursive https://github.com/trenthuber/simplexpm/
-> cd simplexpm/
+> git clone --recursive https://github.com/trenthuber/xpmview/
+> cd xpmview/
```
-simplexpm uses [cbs](https://github.com/trenthuber/cbs/) as its build system. cbs uses C source code as its build files, so the only thing you need to build this project is a C compiler. The first step is to bootstrap the build system by compiling the build file located at the root level of the repository.
+xpmview uses [cbs](https://github.com/trenthuber/cbs/) as its build system. cbs uses C source code as its build files, so the only thing you need to build this project is a C compiler. The first step is to bootstrap the build system by compiling the build file located at the root level of the repository.
```console
> cc -o build build.c
Once built, the application will be located in the `bin/` folder.
```console
-> bin/simplexpm
+> bin/xpmview
```
To clean the repository after building, just run the `clean` executable generated by the build system.
Finally, with an XPM file loaded, color modes can be changed by pressing corresponding keys (see a complete list of key bindings by using the `-h` flag).
```console
-> bin/simplexpm -f assets/test.xpm
+> bin/xpmview -f assets/test.xpm
```

buildcolors();
buildfont();
- buildfiles((struct cbsfile []){{"../bin/simplexpm", LLRAYLIB, 'x'},
+ buildfiles((struct cbsfile []){{"../bin/xpmview", LLRAYLIB, 'x'},
{"colors", NONE},
{"main", LIST(CFRAYLIB)},
if (!options(argc, argv)) return EXIT_FAILURE;
if (!debug) SetTraceLogLevel(LOG_ERROR);
- InitWindow(800, 600, "simplexpm");
+ InitWindow(800, 600, "xpmview");
SetWindowState(FLAG_WINDOW_RESIZABLE);
SetTargetFPS(30);
SetExitKey(KEY_Q);