Skip to content

Commit

Permalink
capitaine-cursors: init at 4
Browse files Browse the repository at this point in the history
This re-adds a patch for capitaine-cursors that adds a 1.75x scale
option. This is to work around the fact that the cursor sizes seem to
have decreased in R4. There is also an branch `adjust-sizes` that might
fix this.

See: keeferrourke/capitaine-cursors#42
  • Loading branch information
InternetUnexplorer committed Jul 17, 2021
1 parent 73f83af commit a9e5d18
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
38 changes: 38 additions & 0 deletions capitaine-cursors/0001-add-1-75x-size.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
diff --git a/build.sh b/build.sh
index 731d2a6..c25c54d 100755
--- a/build.sh
+++ b/build.sh
@@ -10,7 +10,7 @@ PLATFORMS=('unix' 'win32')
BUILD_DIR=$PWD/_build
SPECS="$SRC/config"
ALIASES="$SRC/cursor-aliases"
-SIZES=('1' '1.25' '1.5' '2' '2.5' '3' '4' '5' '6' '10')
+SIZES=('1' '1.25' '1.5' '1.75' '2' '2.5' '3' '4' '5' '6' '10')
DPIS=('lo' 'tv' 'hd' 'xhd' 'xxhd' 'xxxhd')
SVG_DIM=24
SVG_DPI=96
@@ -25,19 +25,19 @@ function set_sizes {
max_size="$1"
case $max_size in
lo)
- SIZES=("${SIZES[@]:0:3}")
+ SIZES=("${SIZES[@]:0:4}")
;;
tv)
- SIZES=("${SIZES[@]:0:4}")
+ SIZES=("${SIZES[@]:0:5}")
;;
hd)
- SIZES=("${SIZES[@]:0:5}")
+ SIZES=("${SIZES[@]:0:6}")
;;
xhd)
- SIZES=("${SIZES[@]:0:6}")
+ SIZES=("${SIZES[@]:0:7}")
;;
xxhd)
- SIZES=("${SIZES[@]:0:7}")
+ SIZES=("${SIZES[@]:0:8}")
;;
xxxhd)
SIZES=("${SIZES[@]}")
4 changes: 4 additions & 0 deletions capitaine-cursors/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{ capitaine-cursors }:

capitaine-cursors.overrideAttrs
(old: { patches = (old.patches or [ ]) ++ [ ./0001-add-1-75x-size.patch ]; })

0 comments on commit a9e5d18

Please sign in to comment.