From a514d782d9e3f5b11330b96c7f0212d405c70f78 Mon Sep 17 00:00:00 2001 From: Trent Huber Date: Thu, 28 Aug 2025 00:52:56 -0400 Subject: [PATCH] simplexpm -> xpmview --- README.md | 14 +++++++------- bin/.gitignore | 2 +- src/build.c | 2 +- src/main.c | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9b33471..ee2a177 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# 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 @@ -10,11 +10,11 @@ simplexpm is a simple GUI application used to view XPM image files. 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 @@ -29,7 +29,7 @@ Running the `build` executable we just generated will build the entire project. 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. @@ -51,7 +51,7 @@ If modifications are made to the XPM file while loaded, hitting `r` reloads the 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 ``` ![Here's an image of the above command running on my machine.](assets/application.png "Running the above command") diff --git a/bin/.gitignore b/bin/.gitignore index 6207f39..b4031cb 100644 --- a/bin/.gitignore +++ b/bin/.gitignore @@ -1 +1 @@ -simplexpm +xpmview diff --git a/src/build.c b/src/build.c index 59e3b38..6698c31 100644 --- a/src/build.c +++ b/src/build.c @@ -128,7 +128,7 @@ int main(void) { buildcolors(); buildfont(); - buildfiles((struct cbsfile []){{"../bin/simplexpm", LLRAYLIB, 'x'}, + buildfiles((struct cbsfile []){{"../bin/xpmview", LLRAYLIB, 'x'}, {"colors", NONE}, {"main", LIST(CFRAYLIB)}, diff --git a/src/main.c b/src/main.c index e649fb7..3eabce0 100644 --- a/src/main.c +++ b/src/main.c @@ -68,7 +68,7 @@ int main(int argc, char **argv) { 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); -- 2.51.0