diff --git a/README.md b/README.md index 137ed71..9bee1b5 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ resolution | description 1024x768 | resizing the 640x480 image and using it again. 720x720 | images worked on by @duncanyoyo1, @vidnez, @anbernic 1280x720 | This image is pre-applied by crossmix. +960x720 | images worked on by @kk&66. 854x480 | not defined 720x480 | images worked on by @tamarindojuice. 480x320 | not defined @@ -119,6 +120,35 @@ example
"screen1_h":384 }, ~~~ + +#### Alpha Channel Support + +Background images now include alpha transparency channels to enable bezel overlays that can be superimposed on game screens as masks. The screen areas defined in `layout.json` are made transparent (alpha = 0), allowing the game content to show through while displaying the bezel/frame around the screens. + +#### Automated Processing Script + +`nd_bezel_process.py` is a Python script that automatically processes PNG images to add alpha transparency to screen areas based on `layout.json` configuration. + +**Usage:** +```bash +# Process images in the default bg directory +python3 nd_bezel_process.py + +# Process images in a specific directory +python3 nd_bezel_process.py /path/to/bg/directory +``` + +**Requirements:** +- Python 3.x +- Pillow library: `pip install Pillow` + +**What it does:** +- Reads `layout.json` configuration for each resolution +- Converts images to RGBA format if needed +- Makes screen0 and screen1 areas transparent based on coordinates +- Handles rotation (90°, 270°) for vertical layouts +- Overwrites the original PNG files with transparency added + I'm not good at graphics work tools, so I'm always welcome to reflect on this git hub after someone changes the bg image. [Support for devices or assistance in purchasing devices is always welcome.](https://ko-fi.com/trngaje)
diff --git a/bg/1024x768/1/bg_h1.png b/bg/1024x768/1/bg_h1.png index 9b0d395..0542b76 100755 Binary files a/bg/1024x768/1/bg_h1.png and b/bg/1024x768/1/bg_h1.png differ diff --git a/bg/1024x768/1/bg_hh0.png b/bg/1024x768/1/bg_hh0.png index 25f3b7a..a12205d 100755 Binary files a/bg/1024x768/1/bg_hh0.png and b/bg/1024x768/1/bg_hh0.png differ diff --git a/bg/1024x768/1/bg_v1.png b/bg/1024x768/1/bg_v1.png index 9c351fb..fa91079 100755 Binary files a/bg/1024x768/1/bg_v1.png and b/bg/1024x768/1/bg_v1.png differ diff --git a/bg/1024x768/1/bg_vh_s0.png b/bg/1024x768/1/bg_vh_s0.png index 25f1b42..a2ac785 100755 Binary files a/bg/1024x768/1/bg_vh_s0.png and b/bg/1024x768/1/bg_vh_s0.png differ diff --git a/bg/1024x768/1/bg_vh_s2.png b/bg/1024x768/1/bg_vh_s2.png index 7418916..2d61ba2 100755 Binary files a/bg/1024x768/1/bg_vh_s2.png and b/bg/1024x768/1/bg_vh_s2.png differ diff --git a/bg/1024x768/2/bg_h1.png b/bg/1024x768/2/bg_h1.png index aba21ed..aa37cb5 100755 Binary files a/bg/1024x768/2/bg_h1.png and b/bg/1024x768/2/bg_h1.png differ diff --git a/bg/1024x768/2/bg_hh0.png b/bg/1024x768/2/bg_hh0.png index c1b44d5..b635398 100755 Binary files a/bg/1024x768/2/bg_hh0.png and b/bg/1024x768/2/bg_hh0.png differ diff --git a/bg/1024x768/2/bg_v1.png b/bg/1024x768/2/bg_v1.png index a7026fc..f44fa3f 100755 Binary files a/bg/1024x768/2/bg_v1.png and b/bg/1024x768/2/bg_v1.png differ diff --git a/bg/1024x768/2/bg_vh_s0.png b/bg/1024x768/2/bg_vh_s0.png index 9c6c9d9..90e7786 100755 Binary files a/bg/1024x768/2/bg_vh_s0.png and b/bg/1024x768/2/bg_vh_s0.png differ diff --git a/bg/1024x768/2/bg_vh_s2.png b/bg/1024x768/2/bg_vh_s2.png index 4bcbc56..4977043 100755 Binary files a/bg/1024x768/2/bg_vh_s2.png and b/bg/1024x768/2/bg_vh_s2.png differ diff --git a/bg/1024x768/3/bg_h1.png b/bg/1024x768/3/bg_h1.png index f7d566b..16a079d 100755 Binary files a/bg/1024x768/3/bg_h1.png and b/bg/1024x768/3/bg_h1.png differ diff --git a/bg/1024x768/3/bg_hh0.png b/bg/1024x768/3/bg_hh0.png index 87e7483..eda5c62 100755 Binary files a/bg/1024x768/3/bg_hh0.png and b/bg/1024x768/3/bg_hh0.png differ diff --git a/bg/1024x768/3/bg_v1.png b/bg/1024x768/3/bg_v1.png index 054efae..aa4aba0 100755 Binary files a/bg/1024x768/3/bg_v1.png and b/bg/1024x768/3/bg_v1.png differ diff --git a/bg/1024x768/3/bg_vh_s0.png b/bg/1024x768/3/bg_vh_s0.png index e928f3e..97a32a7 100755 Binary files a/bg/1024x768/3/bg_vh_s0.png and b/bg/1024x768/3/bg_vh_s0.png differ diff --git a/bg/1024x768/3/bg_vh_s2.png b/bg/1024x768/3/bg_vh_s2.png index 20db98d..81656c8 100755 Binary files a/bg/1024x768/3/bg_vh_s2.png and b/bg/1024x768/3/bg_vh_s2.png differ diff --git a/bg/1024x768/4/bg_h1.png b/bg/1024x768/4/bg_h1.png index f6da5d2..7f13eff 100755 Binary files a/bg/1024x768/4/bg_h1.png and b/bg/1024x768/4/bg_h1.png differ diff --git a/bg/1024x768/4/bg_hh0.png b/bg/1024x768/4/bg_hh0.png index 396f603..b73a12f 100755 Binary files a/bg/1024x768/4/bg_hh0.png and b/bg/1024x768/4/bg_hh0.png differ diff --git a/bg/1024x768/4/bg_v1.png b/bg/1024x768/4/bg_v1.png index 892b88e..30794c5 100755 Binary files a/bg/1024x768/4/bg_v1.png and b/bg/1024x768/4/bg_v1.png differ diff --git a/bg/1024x768/4/bg_vh_s0.png b/bg/1024x768/4/bg_vh_s0.png index f921b1b..1baee24 100755 Binary files a/bg/1024x768/4/bg_vh_s0.png and b/bg/1024x768/4/bg_vh_s0.png differ diff --git a/bg/1024x768/4/bg_vh_s2.png b/bg/1024x768/4/bg_vh_s2.png index 69540f9..b52c465 100755 Binary files a/bg/1024x768/4/bg_vh_s2.png and b/bg/1024x768/4/bg_vh_s2.png differ diff --git a/bg/1024x768/5/bg_h1.png b/bg/1024x768/5/bg_h1.png index 8534fe8..e4750f1 100755 Binary files a/bg/1024x768/5/bg_h1.png and b/bg/1024x768/5/bg_h1.png differ diff --git a/bg/1024x768/5/bg_hh0.png b/bg/1024x768/5/bg_hh0.png index 3c50d6a..930fadf 100755 Binary files a/bg/1024x768/5/bg_hh0.png and b/bg/1024x768/5/bg_hh0.png differ diff --git a/bg/1024x768/5/bg_v1.png b/bg/1024x768/5/bg_v1.png index 5671d9d..558ed69 100755 Binary files a/bg/1024x768/5/bg_v1.png and b/bg/1024x768/5/bg_v1.png differ diff --git a/bg/1024x768/5/bg_vh_s0.png b/bg/1024x768/5/bg_vh_s0.png index 5c5ca2e..7268dda 100755 Binary files a/bg/1024x768/5/bg_vh_s0.png and b/bg/1024x768/5/bg_vh_s0.png differ diff --git a/bg/1024x768/5/bg_vh_s2.png b/bg/1024x768/5/bg_vh_s2.png index 731d8e4..5b050ba 100755 Binary files a/bg/1024x768/5/bg_vh_s2.png and b/bg/1024x768/5/bg_vh_s2.png differ diff --git a/bg/1024x768/6/bg_h1.png b/bg/1024x768/6/bg_h1.png index 630b184..f8153ab 100755 Binary files a/bg/1024x768/6/bg_h1.png and b/bg/1024x768/6/bg_h1.png differ diff --git a/bg/1024x768/6/bg_hh0.png b/bg/1024x768/6/bg_hh0.png index 4b1161b..300527d 100755 Binary files a/bg/1024x768/6/bg_hh0.png and b/bg/1024x768/6/bg_hh0.png differ diff --git a/bg/1024x768/6/bg_v1.png b/bg/1024x768/6/bg_v1.png index e6586ec..f06c2af 100755 Binary files a/bg/1024x768/6/bg_v1.png and b/bg/1024x768/6/bg_v1.png differ diff --git a/bg/1024x768/6/bg_vh_s0.png b/bg/1024x768/6/bg_vh_s0.png index 50fc894..99e76a4 100755 Binary files a/bg/1024x768/6/bg_vh_s0.png and b/bg/1024x768/6/bg_vh_s0.png differ diff --git a/bg/1024x768/6/bg_vh_s2.png b/bg/1024x768/6/bg_vh_s2.png index 5727956..509dc73 100755 Binary files a/bg/1024x768/6/bg_vh_s2.png and b/bg/1024x768/6/bg_vh_s2.png differ diff --git a/bg/1024x768/7/bg_h1.png b/bg/1024x768/7/bg_h1.png index 7f7641a..5c4380e 100755 Binary files a/bg/1024x768/7/bg_h1.png and b/bg/1024x768/7/bg_h1.png differ diff --git a/bg/1024x768/7/bg_hh0.png b/bg/1024x768/7/bg_hh0.png index 093f1d4..9c5abc9 100755 Binary files a/bg/1024x768/7/bg_hh0.png and b/bg/1024x768/7/bg_hh0.png differ diff --git a/bg/1024x768/7/bg_v1.png b/bg/1024x768/7/bg_v1.png index b7f8954..f2a3677 100755 Binary files a/bg/1024x768/7/bg_v1.png and b/bg/1024x768/7/bg_v1.png differ diff --git a/bg/1024x768/7/bg_vh_s0.png b/bg/1024x768/7/bg_vh_s0.png index c350ad1..f1a79c0 100755 Binary files a/bg/1024x768/7/bg_vh_s0.png and b/bg/1024x768/7/bg_vh_s0.png differ diff --git a/bg/1024x768/7/bg_vh_s2.png b/bg/1024x768/7/bg_vh_s2.png index 4a1651b..bcb4c4d 100755 Binary files a/bg/1024x768/7/bg_vh_s2.png and b/bg/1024x768/7/bg_vh_s2.png differ diff --git a/bg/1024x768/8/bg_h1.png b/bg/1024x768/8/bg_h1.png index c16b5e7..c115420 100755 Binary files a/bg/1024x768/8/bg_h1.png and b/bg/1024x768/8/bg_h1.png differ diff --git a/bg/1024x768/8/bg_hh0.png b/bg/1024x768/8/bg_hh0.png index 3d02efe..78d2524 100755 Binary files a/bg/1024x768/8/bg_hh0.png and b/bg/1024x768/8/bg_hh0.png differ diff --git a/bg/1024x768/8/bg_v1.png b/bg/1024x768/8/bg_v1.png index 4c9196e..55d1914 100755 Binary files a/bg/1024x768/8/bg_v1.png and b/bg/1024x768/8/bg_v1.png differ diff --git a/bg/1024x768/8/bg_vh_s0.png b/bg/1024x768/8/bg_vh_s0.png index 573201c..e21b290 100755 Binary files a/bg/1024x768/8/bg_vh_s0.png and b/bg/1024x768/8/bg_vh_s0.png differ diff --git a/bg/1024x768/8/bg_vh_s2.png b/bg/1024x768/8/bg_vh_s2.png index b2e9848..078c4a1 100755 Binary files a/bg/1024x768/8/bg_vh_s2.png and b/bg/1024x768/8/bg_vh_s2.png differ diff --git a/bg/1024x768/9/bg_h1.png b/bg/1024x768/9/bg_h1.png index 046a34b..7b4605c 100755 Binary files a/bg/1024x768/9/bg_h1.png and b/bg/1024x768/9/bg_h1.png differ diff --git a/bg/1024x768/9/bg_hh0.png b/bg/1024x768/9/bg_hh0.png index 2b528ef..d0a3c94 100755 Binary files a/bg/1024x768/9/bg_hh0.png and b/bg/1024x768/9/bg_hh0.png differ diff --git a/bg/1024x768/9/bg_v1.png b/bg/1024x768/9/bg_v1.png index 8e8a656..f93d5bb 100755 Binary files a/bg/1024x768/9/bg_v1.png and b/bg/1024x768/9/bg_v1.png differ diff --git a/bg/1024x768/9/bg_vh_s0.png b/bg/1024x768/9/bg_vh_s0.png index d584109..26f020f 100755 Binary files a/bg/1024x768/9/bg_vh_s0.png and b/bg/1024x768/9/bg_vh_s0.png differ diff --git a/bg/1024x768/9/bg_vh_s2.png b/bg/1024x768/9/bg_vh_s2.png index b79ad83..bceaa7d 100755 Binary files a/bg/1024x768/9/bg_vh_s2.png and b/bg/1024x768/9/bg_vh_s2.png differ diff --git a/bg/1280x720/1/bg_vertical.png b/bg/1280x720/1/bg_vertical.png new file mode 100755 index 0000000..17f6765 Binary files /dev/null and b/bg/1280x720/1/bg_vertical.png differ diff --git a/bg/1280x720/1/bg_vertical_ext.png b/bg/1280x720/1/bg_vertical_ext.png new file mode 100755 index 0000000..7fb34a8 Binary files /dev/null and b/bg/1280x720/1/bg_vertical_ext.png differ diff --git a/bg/1920x1080/layout.json b/bg/1920x1080/layout.json new file mode 100755 index 0000000..ed41d74 --- /dev/null +++ b/bg/1920x1080/layout.json @@ -0,0 +1,57 @@ +{ +"name":"kk", +"number":2, +"layout":[ +{ + "index":0, + "name":"vh_t0", + "bg":"", + "type":1, + + "screen0_x":0, + "screen0_y":0, + "screen0_w":256, + "screen0_h":192, + + "screen1_x":0, + "screen1_y":0, + "screen1_w":1024, + "screen1_h":768 +}, +{ + "index":1, + "name":"vh_t1", + "bg":"", + "type":1, + + "screen0_x":0, + "screen0_y":0, + "screen0_w":512, + "screen0_h":384, + + "screen1_x":0, + "screen1_y":0, + "screen1_w":1024, + "screen1_h":768 +}, + +{ + "index":2, + "name":"s1", + "bg":"", + "type":1, + + "screen0_x":0, + "screen0_y":0, + "screen0_w":0, + "screen0_h":0, + + "screen1_x":0, + "screen1_y":0, + "screen1_w":1024, + "screen1_h":768 +}, +] + +} + diff --git a/bg/1920x1200/layout.json b/bg/1920x1200/layout.json new file mode 100644 index 0000000..880ed7e --- /dev/null +++ b/bg/1920x1200/layout.json @@ -0,0 +1,62 @@ +{ + "name": "1080p Default", + "number": 4, + "layout": [ + { + "index": 0, + "type": 0, + "name": "Normal (2DS)", + "bg": "", + "screen0_x": 64, + "screen0_y": 60, + "screen0_w": 1280, + "screen0_h": 960, + "screen1_x": 1408, + "screen1_y": 372, + "screen1_w": 448, + "screen1_h": 336 + }, + { + "index": 1, + "type": 0, + "name": "Vertical", + "bg": "", + "screen0_x": 600, + "screen0_y": 0, + "screen0_w": 720, + "screen0_h": 540, + "screen1_x": 600, + "screen1_y": 540, + "screen1_w": 720, + "screen1_h": 540 + }, + { + "index": 2, + "type": 0, + "name": "Top Full", + "bg": "", + "screen0_x": 0, + "screen0_y": 0, + "screen0_w": 1440, + "screen0_h": 1080, + "screen1_x": 1440, + "screen1_y": 360, + "screen1_w": 480, + "screen1_h": 360 + }, + { + "index": 3, + "type": 0, + "name": "Transparent", + "bg": "", + "screen0_x": 0, + "screen0_y": 60, + "screen0_w": 1280, + "screen0_h": 960, + "screen1_x": 1280, + "screen1_y": 300, + "screen1_w": 640, + "screen1_h": 480 + }, + ] +} diff --git a/bg/640x480/1/bg_h0.png b/bg/640x480/1/bg_h0.png index 1735482..efe2a9d 100755 Binary files a/bg/640x480/1/bg_h0.png and b/bg/640x480/1/bg_h0.png differ diff --git a/bg/640x480/1/bg_h1.png b/bg/640x480/1/bg_h1.png index fd8d997..1dfefb4 100755 Binary files a/bg/640x480/1/bg_h1.png and b/bg/640x480/1/bg_h1.png differ diff --git a/bg/640x480/1/bg_hh0.png b/bg/640x480/1/bg_hh0.png index dc39587..6c688bd 100755 Binary files a/bg/640x480/1/bg_hh0.png and b/bg/640x480/1/bg_hh0.png differ diff --git a/bg/640x480/1/bg_hres0.png b/bg/640x480/1/bg_hres0.png index 8deb2af..e3d7163 100755 Binary files a/bg/640x480/1/bg_hres0.png and b/bg/640x480/1/bg_hres0.png differ diff --git a/bg/640x480/1/bg_s0.png b/bg/640x480/1/bg_s0.png index 12dafdd..a0312d9 100755 Binary files a/bg/640x480/1/bg_s0.png and b/bg/640x480/1/bg_s0.png differ diff --git a/bg/640x480/1/bg_v0.png b/bg/640x480/1/bg_v0.png index d32a4c3..1b22a8f 100755 Binary files a/bg/640x480/1/bg_v0.png and b/bg/640x480/1/bg_v0.png differ diff --git a/bg/640x480/1/bg_v1.png b/bg/640x480/1/bg_v1.png index eee3b11..64328aa 100755 Binary files a/bg/640x480/1/bg_v1.png and b/bg/640x480/1/bg_v1.png differ diff --git a/bg/640x480/1/bg_vh_c0.png b/bg/640x480/1/bg_vh_c0.png index 4a515e2..7edd938 100755 Binary files a/bg/640x480/1/bg_vh_c0.png and b/bg/640x480/1/bg_vh_c0.png differ diff --git a/bg/640x480/1/bg_vh_c1.png b/bg/640x480/1/bg_vh_c1.png index f07a3d7..1f791c0 100755 Binary files a/bg/640x480/1/bg_vh_c1.png and b/bg/640x480/1/bg_vh_c1.png differ diff --git a/bg/640x480/1/bg_vh_s0.png b/bg/640x480/1/bg_vh_s0.png index be4363c..7f46029 100755 Binary files a/bg/640x480/1/bg_vh_s0.png and b/bg/640x480/1/bg_vh_s0.png differ diff --git a/bg/640x480/1/bg_vh_s1.png b/bg/640x480/1/bg_vh_s1.png index af9f1d7..74a3d8f 100755 Binary files a/bg/640x480/1/bg_vh_s1.png and b/bg/640x480/1/bg_vh_s1.png differ diff --git a/bg/640x480/1/bg_vh_s2.png b/bg/640x480/1/bg_vh_s2.png index 194883e..d8ec45c 100755 Binary files a/bg/640x480/1/bg_vh_s2.png and b/bg/640x480/1/bg_vh_s2.png differ diff --git a/bg/640x480/2/bg_h0.png b/bg/640x480/2/bg_h0.png index 6c02978..a2a237c 100755 Binary files a/bg/640x480/2/bg_h0.png and b/bg/640x480/2/bg_h0.png differ diff --git a/bg/640x480/2/bg_h1.png b/bg/640x480/2/bg_h1.png index 2598b7f..126692e 100755 Binary files a/bg/640x480/2/bg_h1.png and b/bg/640x480/2/bg_h1.png differ diff --git a/bg/640x480/2/bg_hh0.png b/bg/640x480/2/bg_hh0.png index d35995f..17b67a4 100755 Binary files a/bg/640x480/2/bg_hh0.png and b/bg/640x480/2/bg_hh0.png differ diff --git a/bg/640x480/2/bg_hres0.png b/bg/640x480/2/bg_hres0.png index 64886a9..3e2d4ca 100755 Binary files a/bg/640x480/2/bg_hres0.png and b/bg/640x480/2/bg_hres0.png differ diff --git a/bg/640x480/2/bg_s0.png b/bg/640x480/2/bg_s0.png index 7b6a755..73f90c8 100755 Binary files a/bg/640x480/2/bg_s0.png and b/bg/640x480/2/bg_s0.png differ diff --git a/bg/640x480/2/bg_v0.png b/bg/640x480/2/bg_v0.png index 698c928..fc22f3a 100755 Binary files a/bg/640x480/2/bg_v0.png and b/bg/640x480/2/bg_v0.png differ diff --git a/bg/640x480/2/bg_v1.png b/bg/640x480/2/bg_v1.png index eeab7c9..8612935 100755 Binary files a/bg/640x480/2/bg_v1.png and b/bg/640x480/2/bg_v1.png differ diff --git a/bg/640x480/2/bg_vh_c0.png b/bg/640x480/2/bg_vh_c0.png index dfa60c7..42aeb1f 100755 Binary files a/bg/640x480/2/bg_vh_c0.png and b/bg/640x480/2/bg_vh_c0.png differ diff --git a/bg/640x480/2/bg_vh_c1.png b/bg/640x480/2/bg_vh_c1.png index 686dfe6..2136d63 100755 Binary files a/bg/640x480/2/bg_vh_c1.png and b/bg/640x480/2/bg_vh_c1.png differ diff --git a/bg/640x480/2/bg_vh_s0.png b/bg/640x480/2/bg_vh_s0.png index 48d78c0..2fce23d 100755 Binary files a/bg/640x480/2/bg_vh_s0.png and b/bg/640x480/2/bg_vh_s0.png differ diff --git a/bg/640x480/2/bg_vh_s1.png b/bg/640x480/2/bg_vh_s1.png index f84ed60..6af3a52 100755 Binary files a/bg/640x480/2/bg_vh_s1.png and b/bg/640x480/2/bg_vh_s1.png differ diff --git a/bg/640x480/2/bg_vh_s2.png b/bg/640x480/2/bg_vh_s2.png index ccb071c..d88d053 100755 Binary files a/bg/640x480/2/bg_vh_s2.png and b/bg/640x480/2/bg_vh_s2.png differ diff --git a/bg/640x480/3/bg_h0.png b/bg/640x480/3/bg_h0.png index 17e8969..43104b0 100755 Binary files a/bg/640x480/3/bg_h0.png and b/bg/640x480/3/bg_h0.png differ diff --git a/bg/640x480/3/bg_h1.png b/bg/640x480/3/bg_h1.png index f414e16..b888b51 100755 Binary files a/bg/640x480/3/bg_h1.png and b/bg/640x480/3/bg_h1.png differ diff --git a/bg/640x480/3/bg_hh0.png b/bg/640x480/3/bg_hh0.png index 344739c..e430ac0 100755 Binary files a/bg/640x480/3/bg_hh0.png and b/bg/640x480/3/bg_hh0.png differ diff --git a/bg/640x480/3/bg_hres0.png b/bg/640x480/3/bg_hres0.png index 4684c4e..789e21b 100755 Binary files a/bg/640x480/3/bg_hres0.png and b/bg/640x480/3/bg_hres0.png differ diff --git a/bg/640x480/3/bg_s0.png b/bg/640x480/3/bg_s0.png index a869cd6..51beb17 100755 Binary files a/bg/640x480/3/bg_s0.png and b/bg/640x480/3/bg_s0.png differ diff --git a/bg/640x480/3/bg_v0.png b/bg/640x480/3/bg_v0.png index 883b471..ad50795 100755 Binary files a/bg/640x480/3/bg_v0.png and b/bg/640x480/3/bg_v0.png differ diff --git a/bg/640x480/3/bg_v1.png b/bg/640x480/3/bg_v1.png index a7ef86d..3b3c7ee 100755 Binary files a/bg/640x480/3/bg_v1.png and b/bg/640x480/3/bg_v1.png differ diff --git a/bg/640x480/3/bg_vh_c0.png b/bg/640x480/3/bg_vh_c0.png index 1cd7626..0fdcb7b 100755 Binary files a/bg/640x480/3/bg_vh_c0.png and b/bg/640x480/3/bg_vh_c0.png differ diff --git a/bg/640x480/3/bg_vh_c1.png b/bg/640x480/3/bg_vh_c1.png index c332a60..b65f990 100755 Binary files a/bg/640x480/3/bg_vh_c1.png and b/bg/640x480/3/bg_vh_c1.png differ diff --git a/bg/640x480/3/bg_vh_s0.png b/bg/640x480/3/bg_vh_s0.png index 7827585..3832b89 100755 Binary files a/bg/640x480/3/bg_vh_s0.png and b/bg/640x480/3/bg_vh_s0.png differ diff --git a/bg/640x480/3/bg_vh_s1.png b/bg/640x480/3/bg_vh_s1.png index 4c3c223..cba573c 100755 Binary files a/bg/640x480/3/bg_vh_s1.png and b/bg/640x480/3/bg_vh_s1.png differ diff --git a/bg/640x480/3/bg_vh_s2.png b/bg/640x480/3/bg_vh_s2.png index ae04b68..3b446b0 100755 Binary files a/bg/640x480/3/bg_vh_s2.png and b/bg/640x480/3/bg_vh_s2.png differ diff --git a/bg/640x480/4/bg_h0.png b/bg/640x480/4/bg_h0.png index a4f3033..46cceb8 100755 Binary files a/bg/640x480/4/bg_h0.png and b/bg/640x480/4/bg_h0.png differ diff --git a/bg/640x480/4/bg_h1.png b/bg/640x480/4/bg_h1.png index 3ccb035..d53dadd 100755 Binary files a/bg/640x480/4/bg_h1.png and b/bg/640x480/4/bg_h1.png differ diff --git a/bg/640x480/4/bg_hh0.png b/bg/640x480/4/bg_hh0.png index 4c3d82b..f8e85c3 100755 Binary files a/bg/640x480/4/bg_hh0.png and b/bg/640x480/4/bg_hh0.png differ diff --git a/bg/640x480/4/bg_hres0.png b/bg/640x480/4/bg_hres0.png index b736a82..5cfe0ab 100755 Binary files a/bg/640x480/4/bg_hres0.png and b/bg/640x480/4/bg_hres0.png differ diff --git a/bg/640x480/4/bg_s0.png b/bg/640x480/4/bg_s0.png index 03d3c27..78703ef 100755 Binary files a/bg/640x480/4/bg_s0.png and b/bg/640x480/4/bg_s0.png differ diff --git a/bg/640x480/4/bg_v0.png b/bg/640x480/4/bg_v0.png index 2e2fcf2..75349ce 100755 Binary files a/bg/640x480/4/bg_v0.png and b/bg/640x480/4/bg_v0.png differ diff --git a/bg/640x480/4/bg_v1.png b/bg/640x480/4/bg_v1.png index 54af1fb..54b8fe7 100755 Binary files a/bg/640x480/4/bg_v1.png and b/bg/640x480/4/bg_v1.png differ diff --git a/bg/640x480/4/bg_vh_c0.png b/bg/640x480/4/bg_vh_c0.png index 95a7081..375222a 100755 Binary files a/bg/640x480/4/bg_vh_c0.png and b/bg/640x480/4/bg_vh_c0.png differ diff --git a/bg/640x480/4/bg_vh_c1.png b/bg/640x480/4/bg_vh_c1.png index d186d69..a68a36f 100755 Binary files a/bg/640x480/4/bg_vh_c1.png and b/bg/640x480/4/bg_vh_c1.png differ diff --git a/bg/640x480/4/bg_vh_s0.png b/bg/640x480/4/bg_vh_s0.png index a6dec54..96e331d 100755 Binary files a/bg/640x480/4/bg_vh_s0.png and b/bg/640x480/4/bg_vh_s0.png differ diff --git a/bg/640x480/4/bg_vh_s1.png b/bg/640x480/4/bg_vh_s1.png index 17319ba..8354adb 100755 Binary files a/bg/640x480/4/bg_vh_s1.png and b/bg/640x480/4/bg_vh_s1.png differ diff --git a/bg/640x480/4/bg_vh_s2.png b/bg/640x480/4/bg_vh_s2.png index a285607..9b64b40 100755 Binary files a/bg/640x480/4/bg_vh_s2.png and b/bg/640x480/4/bg_vh_s2.png differ diff --git a/bg/640x480/5/bg_h0.png b/bg/640x480/5/bg_h0.png index 2d21345..8d8f7af 100755 Binary files a/bg/640x480/5/bg_h0.png and b/bg/640x480/5/bg_h0.png differ diff --git a/bg/640x480/5/bg_h1.png b/bg/640x480/5/bg_h1.png index 9e902ac..e161f58 100755 Binary files a/bg/640x480/5/bg_h1.png and b/bg/640x480/5/bg_h1.png differ diff --git a/bg/640x480/5/bg_hh0.png b/bg/640x480/5/bg_hh0.png index 49f2547..0283fe5 100755 Binary files a/bg/640x480/5/bg_hh0.png and b/bg/640x480/5/bg_hh0.png differ diff --git a/bg/640x480/5/bg_hres0.png b/bg/640x480/5/bg_hres0.png index bdf14a1..0f5387c 100755 Binary files a/bg/640x480/5/bg_hres0.png and b/bg/640x480/5/bg_hres0.png differ diff --git a/bg/640x480/5/bg_s0.png b/bg/640x480/5/bg_s0.png index 4481837..d01321b 100755 Binary files a/bg/640x480/5/bg_s0.png and b/bg/640x480/5/bg_s0.png differ diff --git a/bg/640x480/5/bg_v0.png b/bg/640x480/5/bg_v0.png index 5ecea0f..cbe66ff 100755 Binary files a/bg/640x480/5/bg_v0.png and b/bg/640x480/5/bg_v0.png differ diff --git a/bg/640x480/5/bg_v1.png b/bg/640x480/5/bg_v1.png index 7ac83a4..55587e6 100755 Binary files a/bg/640x480/5/bg_v1.png and b/bg/640x480/5/bg_v1.png differ diff --git a/bg/640x480/5/bg_vh_c0.png b/bg/640x480/5/bg_vh_c0.png index c88ecc8..58b4371 100755 Binary files a/bg/640x480/5/bg_vh_c0.png and b/bg/640x480/5/bg_vh_c0.png differ diff --git a/bg/640x480/5/bg_vh_c1.png b/bg/640x480/5/bg_vh_c1.png index 86d9c80..ffa1c92 100755 Binary files a/bg/640x480/5/bg_vh_c1.png and b/bg/640x480/5/bg_vh_c1.png differ diff --git a/bg/640x480/5/bg_vh_s0.png b/bg/640x480/5/bg_vh_s0.png index f360979..41065ff 100755 Binary files a/bg/640x480/5/bg_vh_s0.png and b/bg/640x480/5/bg_vh_s0.png differ diff --git a/bg/640x480/5/bg_vh_s1.png b/bg/640x480/5/bg_vh_s1.png index e8dbcaa..78e0ea3 100755 Binary files a/bg/640x480/5/bg_vh_s1.png and b/bg/640x480/5/bg_vh_s1.png differ diff --git a/bg/640x480/5/bg_vh_s2.png b/bg/640x480/5/bg_vh_s2.png index 05321b0..b4d9cb2 100755 Binary files a/bg/640x480/5/bg_vh_s2.png and b/bg/640x480/5/bg_vh_s2.png differ diff --git a/bg/640x480/6/bg_h0.png b/bg/640x480/6/bg_h0.png index f22fe72..7806a80 100755 Binary files a/bg/640x480/6/bg_h0.png and b/bg/640x480/6/bg_h0.png differ diff --git a/bg/640x480/6/bg_h1.png b/bg/640x480/6/bg_h1.png index 45439b6..6e0fcd5 100755 Binary files a/bg/640x480/6/bg_h1.png and b/bg/640x480/6/bg_h1.png differ diff --git a/bg/640x480/6/bg_hh0.png b/bg/640x480/6/bg_hh0.png index b88309d..a513bfd 100755 Binary files a/bg/640x480/6/bg_hh0.png and b/bg/640x480/6/bg_hh0.png differ diff --git a/bg/640x480/6/bg_hres0.png b/bg/640x480/6/bg_hres0.png index bff6982..c5ba85d 100755 Binary files a/bg/640x480/6/bg_hres0.png and b/bg/640x480/6/bg_hres0.png differ diff --git a/bg/640x480/6/bg_s0.png b/bg/640x480/6/bg_s0.png index e62e421..44a08c3 100755 Binary files a/bg/640x480/6/bg_s0.png and b/bg/640x480/6/bg_s0.png differ diff --git a/bg/640x480/6/bg_v0.png b/bg/640x480/6/bg_v0.png index c510cec..ca64df0 100755 Binary files a/bg/640x480/6/bg_v0.png and b/bg/640x480/6/bg_v0.png differ diff --git a/bg/640x480/6/bg_v1.png b/bg/640x480/6/bg_v1.png index fbd99a4..e28ea71 100755 Binary files a/bg/640x480/6/bg_v1.png and b/bg/640x480/6/bg_v1.png differ diff --git a/bg/640x480/6/bg_vh_c0.png b/bg/640x480/6/bg_vh_c0.png index 4d9911d..3dc67b8 100755 Binary files a/bg/640x480/6/bg_vh_c0.png and b/bg/640x480/6/bg_vh_c0.png differ diff --git a/bg/640x480/6/bg_vh_c1.png b/bg/640x480/6/bg_vh_c1.png index 6dbefb8..e45d2fa 100755 Binary files a/bg/640x480/6/bg_vh_c1.png and b/bg/640x480/6/bg_vh_c1.png differ diff --git a/bg/640x480/6/bg_vh_s0.png b/bg/640x480/6/bg_vh_s0.png index e749f4f..ee46f79 100755 Binary files a/bg/640x480/6/bg_vh_s0.png and b/bg/640x480/6/bg_vh_s0.png differ diff --git a/bg/640x480/6/bg_vh_s1.png b/bg/640x480/6/bg_vh_s1.png index 67208f7..5ddee14 100755 Binary files a/bg/640x480/6/bg_vh_s1.png and b/bg/640x480/6/bg_vh_s1.png differ diff --git a/bg/640x480/6/bg_vh_s2.png b/bg/640x480/6/bg_vh_s2.png index aba5860..a34d3ba 100755 Binary files a/bg/640x480/6/bg_vh_s2.png and b/bg/640x480/6/bg_vh_s2.png differ diff --git a/bg/640x480/7/bg_h0.png b/bg/640x480/7/bg_h0.png index 3be0601..93df6bb 100755 Binary files a/bg/640x480/7/bg_h0.png and b/bg/640x480/7/bg_h0.png differ diff --git a/bg/640x480/7/bg_h1.png b/bg/640x480/7/bg_h1.png index 2a44e97..6e5fa18 100755 Binary files a/bg/640x480/7/bg_h1.png and b/bg/640x480/7/bg_h1.png differ diff --git a/bg/640x480/7/bg_hh0.png b/bg/640x480/7/bg_hh0.png index 7bcf606..3043e11 100755 Binary files a/bg/640x480/7/bg_hh0.png and b/bg/640x480/7/bg_hh0.png differ diff --git a/bg/640x480/7/bg_hres0.png b/bg/640x480/7/bg_hres0.png index 2b858e8..1633a7e 100755 Binary files a/bg/640x480/7/bg_hres0.png and b/bg/640x480/7/bg_hres0.png differ diff --git a/bg/640x480/7/bg_s0.png b/bg/640x480/7/bg_s0.png index 68185e2..f53d9f0 100755 Binary files a/bg/640x480/7/bg_s0.png and b/bg/640x480/7/bg_s0.png differ diff --git a/bg/640x480/7/bg_v0.png b/bg/640x480/7/bg_v0.png index 442d83b..1ab114b 100755 Binary files a/bg/640x480/7/bg_v0.png and b/bg/640x480/7/bg_v0.png differ diff --git a/bg/640x480/7/bg_v1.png b/bg/640x480/7/bg_v1.png index 5859402..4d6ddb0 100755 Binary files a/bg/640x480/7/bg_v1.png and b/bg/640x480/7/bg_v1.png differ diff --git a/bg/640x480/7/bg_vh_c0.png b/bg/640x480/7/bg_vh_c0.png index deaec6a..58dc198 100755 Binary files a/bg/640x480/7/bg_vh_c0.png and b/bg/640x480/7/bg_vh_c0.png differ diff --git a/bg/640x480/7/bg_vh_c1.png b/bg/640x480/7/bg_vh_c1.png index 087c379..f786c4f 100755 Binary files a/bg/640x480/7/bg_vh_c1.png and b/bg/640x480/7/bg_vh_c1.png differ diff --git a/bg/640x480/7/bg_vh_s0.png b/bg/640x480/7/bg_vh_s0.png index 2a06247..99b020a 100755 Binary files a/bg/640x480/7/bg_vh_s0.png and b/bg/640x480/7/bg_vh_s0.png differ diff --git a/bg/640x480/7/bg_vh_s1.png b/bg/640x480/7/bg_vh_s1.png index 63dbcc9..17c2d13 100755 Binary files a/bg/640x480/7/bg_vh_s1.png and b/bg/640x480/7/bg_vh_s1.png differ diff --git a/bg/640x480/7/bg_vh_s2.png b/bg/640x480/7/bg_vh_s2.png index c32d0a1..389f974 100755 Binary files a/bg/640x480/7/bg_vh_s2.png and b/bg/640x480/7/bg_vh_s2.png differ diff --git a/bg/640x480/8/bg_h0.png b/bg/640x480/8/bg_h0.png index f52bc70..1e5e315 100755 Binary files a/bg/640x480/8/bg_h0.png and b/bg/640x480/8/bg_h0.png differ diff --git a/bg/640x480/8/bg_h1.png b/bg/640x480/8/bg_h1.png index 3dd2d63..499b329 100755 Binary files a/bg/640x480/8/bg_h1.png and b/bg/640x480/8/bg_h1.png differ diff --git a/bg/640x480/8/bg_hh0.png b/bg/640x480/8/bg_hh0.png index f7c321b..9140be2 100755 Binary files a/bg/640x480/8/bg_hh0.png and b/bg/640x480/8/bg_hh0.png differ diff --git a/bg/640x480/8/bg_hres0.png b/bg/640x480/8/bg_hres0.png index 1bc3a85..da802fc 100755 Binary files a/bg/640x480/8/bg_hres0.png and b/bg/640x480/8/bg_hres0.png differ diff --git a/bg/640x480/8/bg_s0.png b/bg/640x480/8/bg_s0.png index 1bc3a85..e2abd32 100755 Binary files a/bg/640x480/8/bg_s0.png and b/bg/640x480/8/bg_s0.png differ diff --git a/bg/640x480/8/bg_v0.png b/bg/640x480/8/bg_v0.png index 4f6ae99..26d049a 100755 Binary files a/bg/640x480/8/bg_v0.png and b/bg/640x480/8/bg_v0.png differ diff --git a/bg/640x480/8/bg_v1.png b/bg/640x480/8/bg_v1.png index c28efdc..bc62784 100755 Binary files a/bg/640x480/8/bg_v1.png and b/bg/640x480/8/bg_v1.png differ diff --git a/bg/640x480/8/bg_vh_c0.png b/bg/640x480/8/bg_vh_c0.png index a6c442b..9620b6b 100755 Binary files a/bg/640x480/8/bg_vh_c0.png and b/bg/640x480/8/bg_vh_c0.png differ diff --git a/bg/640x480/8/bg_vh_c1.png b/bg/640x480/8/bg_vh_c1.png index 3e9756f..6721307 100755 Binary files a/bg/640x480/8/bg_vh_c1.png and b/bg/640x480/8/bg_vh_c1.png differ diff --git a/bg/640x480/8/bg_vh_s0.png b/bg/640x480/8/bg_vh_s0.png index 7408c99..867937e 100755 Binary files a/bg/640x480/8/bg_vh_s0.png and b/bg/640x480/8/bg_vh_s0.png differ diff --git a/bg/640x480/8/bg_vh_s1.png b/bg/640x480/8/bg_vh_s1.png index c9dd8d6..e9ca6ec 100755 Binary files a/bg/640x480/8/bg_vh_s1.png and b/bg/640x480/8/bg_vh_s1.png differ diff --git a/bg/640x480/8/bg_vh_s2.png b/bg/640x480/8/bg_vh_s2.png index 470cd0d..fe92437 100755 Binary files a/bg/640x480/8/bg_vh_s2.png and b/bg/640x480/8/bg_vh_s2.png differ diff --git a/bg/640x480/9/bg_h0.png b/bg/640x480/9/bg_h0.png index 12e8529..52d47e7 100755 Binary files a/bg/640x480/9/bg_h0.png and b/bg/640x480/9/bg_h0.png differ diff --git a/bg/640x480/9/bg_h1.png b/bg/640x480/9/bg_h1.png index 66504d1..0ef601d 100755 Binary files a/bg/640x480/9/bg_h1.png and b/bg/640x480/9/bg_h1.png differ diff --git a/bg/640x480/9/bg_hh0.png b/bg/640x480/9/bg_hh0.png index 9e70282..1b09c4c 100755 Binary files a/bg/640x480/9/bg_hh0.png and b/bg/640x480/9/bg_hh0.png differ diff --git a/bg/640x480/9/bg_hres0.png b/bg/640x480/9/bg_hres0.png index 12f27fb..b784093 100755 Binary files a/bg/640x480/9/bg_hres0.png and b/bg/640x480/9/bg_hres0.png differ diff --git a/bg/640x480/9/bg_s0.png b/bg/640x480/9/bg_s0.png index 12f27fb..922cbc4 100755 Binary files a/bg/640x480/9/bg_s0.png and b/bg/640x480/9/bg_s0.png differ diff --git a/bg/640x480/9/bg_v0.png b/bg/640x480/9/bg_v0.png index 4e6345e..bbe2f11 100755 Binary files a/bg/640x480/9/bg_v0.png and b/bg/640x480/9/bg_v0.png differ diff --git a/bg/640x480/9/bg_v1.png b/bg/640x480/9/bg_v1.png index 2a8de14..db093ae 100755 Binary files a/bg/640x480/9/bg_v1.png and b/bg/640x480/9/bg_v1.png differ diff --git a/bg/640x480/9/bg_vh_c0.png b/bg/640x480/9/bg_vh_c0.png index f32a7db..01f2621 100755 Binary files a/bg/640x480/9/bg_vh_c0.png and b/bg/640x480/9/bg_vh_c0.png differ diff --git a/bg/640x480/9/bg_vh_c1.png b/bg/640x480/9/bg_vh_c1.png index 1a747b5..2b6eb19 100755 Binary files a/bg/640x480/9/bg_vh_c1.png and b/bg/640x480/9/bg_vh_c1.png differ diff --git a/bg/640x480/9/bg_vh_s0.png b/bg/640x480/9/bg_vh_s0.png index 67c56fa..34c58ab 100755 Binary files a/bg/640x480/9/bg_vh_s0.png and b/bg/640x480/9/bg_vh_s0.png differ diff --git a/bg/640x480/9/bg_vh_s1.png b/bg/640x480/9/bg_vh_s1.png index e038572..296a68b 100755 Binary files a/bg/640x480/9/bg_vh_s1.png and b/bg/640x480/9/bg_vh_s1.png differ diff --git a/bg/640x480/9/bg_vh_s2.png b/bg/640x480/9/bg_vh_s2.png index db040ef..0347601 100755 Binary files a/bg/640x480/9/bg_vh_s2.png and b/bg/640x480/9/bg_vh_s2.png differ diff --git a/bg/720x480/1/bg_h0.png b/bg/720x480/1/bg_h0.png index 770a60f..c0db414 100644 Binary files a/bg/720x480/1/bg_h0.png and b/bg/720x480/1/bg_h0.png differ diff --git a/bg/720x480/1/bg_h1.png b/bg/720x480/1/bg_h1.png index 91481b6..fe77c7d 100644 Binary files a/bg/720x480/1/bg_h1.png and b/bg/720x480/1/bg_h1.png differ diff --git a/bg/720x480/1/bg_s0.png b/bg/720x480/1/bg_s0.png index 286e382..17958bb 100644 Binary files a/bg/720x480/1/bg_s0.png and b/bg/720x480/1/bg_s0.png differ diff --git a/bg/720x480/1/bg_v0.png b/bg/720x480/1/bg_v0.png index d3bf752..2569c4e 100644 Binary files a/bg/720x480/1/bg_v0.png and b/bg/720x480/1/bg_v0.png differ diff --git a/bg/720x480/1/bg_v1.png b/bg/720x480/1/bg_v1.png index 31e2d35..a3f99c6 100644 Binary files a/bg/720x480/1/bg_v1.png and b/bg/720x480/1/bg_v1.png differ diff --git a/bg/720x480/1/bg_vh_c0.png b/bg/720x480/1/bg_vh_c0.png index 3f89b9e..25adf5f 100644 Binary files a/bg/720x480/1/bg_vh_c0.png and b/bg/720x480/1/bg_vh_c0.png differ diff --git a/bg/720x480/1/bg_vh_s0.png b/bg/720x480/1/bg_vh_s0.png index 72a3d3c..741b03d 100644 Binary files a/bg/720x480/1/bg_vh_s0.png and b/bg/720x480/1/bg_vh_s0.png differ diff --git a/bg/720x480/1/bg_vh_s1.png b/bg/720x480/1/bg_vh_s1.png index c7541c0..478a70e 100644 Binary files a/bg/720x480/1/bg_vh_s1.png and b/bg/720x480/1/bg_vh_s1.png differ diff --git a/bg/720x480/2/bg_h0.png b/bg/720x480/2/bg_h0.png index 5dca5fb..210d26d 100644 Binary files a/bg/720x480/2/bg_h0.png and b/bg/720x480/2/bg_h0.png differ diff --git a/bg/720x480/2/bg_h1.png b/bg/720x480/2/bg_h1.png index e5b652e..a85226b 100644 Binary files a/bg/720x480/2/bg_h1.png and b/bg/720x480/2/bg_h1.png differ diff --git a/bg/720x480/2/bg_s0.png b/bg/720x480/2/bg_s0.png index 5a214b0..b00f22f 100644 Binary files a/bg/720x480/2/bg_s0.png and b/bg/720x480/2/bg_s0.png differ diff --git a/bg/720x480/2/bg_v0.png b/bg/720x480/2/bg_v0.png index 6cbc45f..666f86f 100644 Binary files a/bg/720x480/2/bg_v0.png and b/bg/720x480/2/bg_v0.png differ diff --git a/bg/720x480/2/bg_v1.png b/bg/720x480/2/bg_v1.png index cca65fa..95f2cd2 100644 Binary files a/bg/720x480/2/bg_v1.png and b/bg/720x480/2/bg_v1.png differ diff --git a/bg/720x480/2/bg_vh_c0.png b/bg/720x480/2/bg_vh_c0.png index 087fa25..71bb27a 100644 Binary files a/bg/720x480/2/bg_vh_c0.png and b/bg/720x480/2/bg_vh_c0.png differ diff --git a/bg/720x480/2/bg_vh_s0.png b/bg/720x480/2/bg_vh_s0.png index 4a885e2..8ae59f7 100644 Binary files a/bg/720x480/2/bg_vh_s0.png and b/bg/720x480/2/bg_vh_s0.png differ diff --git a/bg/720x480/2/bg_vh_s1.png b/bg/720x480/2/bg_vh_s1.png index d659fa0..2025467 100644 Binary files a/bg/720x480/2/bg_vh_s1.png and b/bg/720x480/2/bg_vh_s1.png differ diff --git a/bg/720x720/1/bg_h0.png b/bg/720x720/1/bg_h0.png index d57bc70..ea1d0df 100755 Binary files a/bg/720x720/1/bg_h0.png and b/bg/720x720/1/bg_h0.png differ diff --git a/bg/720x720/1/bg_h1.png b/bg/720x720/1/bg_h1.png index e20ea69..0f08af1 100755 Binary files a/bg/720x720/1/bg_h1.png and b/bg/720x720/1/bg_h1.png differ diff --git a/bg/720x720/1/bg_hh0.png b/bg/720x720/1/bg_hh0.png index 01da035..22223e4 100755 Binary files a/bg/720x720/1/bg_hh0.png and b/bg/720x720/1/bg_hh0.png differ diff --git a/bg/720x720/1/bg_hres0.png b/bg/720x720/1/bg_hres0.png index dc9513d..2a7e517 100755 Binary files a/bg/720x720/1/bg_hres0.png and b/bg/720x720/1/bg_hres0.png differ diff --git a/bg/720x720/1/bg_s0.png b/bg/720x720/1/bg_s0.png index dc9513d..2a7e517 100755 Binary files a/bg/720x720/1/bg_s0.png and b/bg/720x720/1/bg_s0.png differ diff --git a/bg/720x720/1/bg_v0.png b/bg/720x720/1/bg_v0.png index 664d47c..b5ab7e4 100755 Binary files a/bg/720x720/1/bg_v0.png and b/bg/720x720/1/bg_v0.png differ diff --git a/bg/720x720/1/bg_v1.png b/bg/720x720/1/bg_v1.png index d9a7ecd..a5f552d 100755 Binary files a/bg/720x720/1/bg_v1.png and b/bg/720x720/1/bg_v1.png differ diff --git a/bg/720x720/1/bg_vh_c1.png b/bg/720x720/1/bg_vh_c1.png index 7b75705..1a0b371 100755 Binary files a/bg/720x720/1/bg_vh_c1.png and b/bg/720x720/1/bg_vh_c1.png differ diff --git a/bg/720x720/1/bg_vh_s2.png b/bg/720x720/1/bg_vh_s2.png index 03fb19a..de3b1e6 100755 Binary files a/bg/720x720/1/bg_vh_s2.png and b/bg/720x720/1/bg_vh_s2.png differ diff --git a/bg/720x720/2/bg_h0.png b/bg/720x720/2/bg_h0.png index 01b9708..ee565fc 100755 Binary files a/bg/720x720/2/bg_h0.png and b/bg/720x720/2/bg_h0.png differ diff --git a/bg/720x720/2/bg_h1.png b/bg/720x720/2/bg_h1.png index b4b5196..f3adbf1 100755 Binary files a/bg/720x720/2/bg_h1.png and b/bg/720x720/2/bg_h1.png differ diff --git a/bg/720x720/2/bg_hh0.png b/bg/720x720/2/bg_hh0.png index b871dc5..e602375 100755 Binary files a/bg/720x720/2/bg_hh0.png and b/bg/720x720/2/bg_hh0.png differ diff --git a/bg/720x720/2/bg_hres0.png b/bg/720x720/2/bg_hres0.png index c716dc0..ea186ff 100755 Binary files a/bg/720x720/2/bg_hres0.png and b/bg/720x720/2/bg_hres0.png differ diff --git a/bg/720x720/2/bg_s0.png b/bg/720x720/2/bg_s0.png index bec8505..76c0767 100755 Binary files a/bg/720x720/2/bg_s0.png and b/bg/720x720/2/bg_s0.png differ diff --git a/bg/720x720/2/bg_v0.png b/bg/720x720/2/bg_v0.png index 18d0245..cbaba0d 100755 Binary files a/bg/720x720/2/bg_v0.png and b/bg/720x720/2/bg_v0.png differ diff --git a/bg/720x720/2/bg_v1.png b/bg/720x720/2/bg_v1.png index cf01d0e..e52cadd 100755 Binary files a/bg/720x720/2/bg_v1.png and b/bg/720x720/2/bg_v1.png differ diff --git a/bg/720x720/2/bg_vh_c1.png b/bg/720x720/2/bg_vh_c1.png index b12f8db..9debc51 100755 Binary files a/bg/720x720/2/bg_vh_c1.png and b/bg/720x720/2/bg_vh_c1.png differ diff --git a/bg/720x720/2/bg_vh_s2.png b/bg/720x720/2/bg_vh_s2.png index d07883b..1b2d4ef 100755 Binary files a/bg/720x720/2/bg_vh_s2.png and b/bg/720x720/2/bg_vh_s2.png differ diff --git a/bg/720x720/layout.json b/bg/720x720/layout.json index 9463a1d..2e1b0cb 100755 --- a/bg/720x720/layout.json +++ b/bg/720x720/layout.json @@ -167,15 +167,16 @@ { "index":9, "name":"vh_c1", - "bg":"", + "bg":"bg_vh_c1.png", + "rotate":90, - "screen0_x":104, - "screen0_y":0, + "screen0_y":104, + "screen0_x":0, "screen0_w":512, "screen0_h":384, - "screen1_x":136, - "screen1_y":384, + "screen1_y":136, + "screen1_x":384, "screen1_w":448, "screen1_h":336 }, diff --git a/bg/960x720/1/bg_vertical.png b/bg/960x720/1/bg_vertical.png new file mode 100755 index 0000000..093d0a4 Binary files /dev/null and b/bg/960x720/1/bg_vertical.png differ diff --git a/bg/960x720/1/bg_vertical_2ds.png b/bg/960x720/1/bg_vertical_2ds.png new file mode 100755 index 0000000..ef0a327 Binary files /dev/null and b/bg/960x720/1/bg_vertical_2ds.png differ diff --git a/bg/960x720/1/bg_vertical_ext.png b/bg/960x720/1/bg_vertical_ext.png new file mode 100755 index 0000000..e9368f5 Binary files /dev/null and b/bg/960x720/1/bg_vertical_ext.png differ diff --git a/bg/960x720/1/bg_vertical_full.png b/bg/960x720/1/bg_vertical_full.png new file mode 100755 index 0000000..c7b06ca Binary files /dev/null and b/bg/960x720/1/bg_vertical_full.png differ diff --git a/bg/960x720/layout.json b/bg/960x720/layout.json new file mode 100755 index 0000000..9a275ea --- /dev/null +++ b/bg/960x720/layout.json @@ -0,0 +1 @@ +{"name": "kk&66", "number": 7, "layout": [{"index": 0, "name": "2ds", "bg": "bg_vertical_2ds.png", "type": 1, "screen0_x": 215, "screen0_y": 0, "screen0_w": 512, "screen0_h": 384, "screen1_x": 279, "screen1_y": 431, "screen1_w": 384, "screen1_h": 288}, {"index": 1, "name": "v_ori", "bg": "bg_vertical.png", "type": 1, "screen0_x": 180, "screen0_y": 0, "screen0_w": 360, "screen0_h": 270, "screen1_x": 180, "screen1_y": 270, "screen1_w": 360, "screen1_h": 270}, {"index": 2, "name": "top_full", "bg": "bg_vertical_full.png", "type": 1, "screen0_x": 96, "screen0_y": 0, "screen0_w": 768, "screen0_h": 576, "screen1_x": 384, "screen1_y": 576, "screen1_w": 192, "screen1_h": 144}, {"index": 3, "name": "top_conn_bottom", "bg": "bg_vertical_ext.png", "type": 1, "screen0_x": 128, "screen0_y": 0, "screen0_w": 704, "screen0_h": 528, "screen1_x": 352, "screen1_y": 528, "screen1_w": 256, "screen1_h": 192}, {"index": 4, "name": "h_single", "bg": "bg_horizon_single.png", "type": 3, "screen0_x": 0, "screen0_y": 0, "screen0_w": 960, "screen0_h": 720, "screen1_x": 0, "screen1_y": 0, "screen1_w": 0, "screen1_h": 0}, {"index": 5, "name": "transparent", "bg": "", "type": 3, "screen0_x": 0, "screen0_y": 0, "screen0_w": 960, "screen0_h": 720, "screen1_x": 704, "screen1_y": 0, "screen1_w": 256, "screen1_h": 192}, {"index": 6, "name": "menu", "bg": "bg_menu.png", "type": 4, "screen0_x": 0, "screen0_y": 0, "screen0_w": 800, "screen0_h": 480, "screen1_x": 0, "screen1_y": 0, "screen1_w": 720, "screen1_h": 720}]} \ No newline at end of file diff --git a/nd_bezel_process.py b/nd_bezel_process.py new file mode 100755 index 0000000..0b170f1 --- /dev/null +++ b/nd_bezel_process.py @@ -0,0 +1,137 @@ +#!/usr/bin/env python3 +import json +import os +import sys +import argparse +from pathlib import Path +from PIL import Image + +def process_bezel_images(base_path): + """Process NDS bezel images, make screen areas transparent based on layout.json""" + + nds_bg_path = Path(base_path) + + # Iterate through all resolution directories + for res_dir in nds_bg_path.iterdir(): + if not res_dir.is_dir(): + continue + + print(f"\nProcessing resolution directory: {res_dir.name}") + + layout_json_path = res_dir / "layout.json" + if not layout_json_path.exists(): + print(f" Skipping: layout.json not found") + continue + + # Read layout.json + with open(layout_json_path, 'r', encoding='utf-8') as f: + content = f.read() + # Fix JSON format issues: remove trailing commas + import re + content = re.sub(r',\s*}', '}', content) # Trailing comma in object + content = re.sub(r',\s*\]', ']', content) # Trailing comma in array + layout_data = json.loads(content) + + # Iterate through all numeric subdirectories (themes) + for theme_dir in res_dir.iterdir(): + if not theme_dir.is_dir() or not theme_dir.name.isdigit(): + continue + + print(f" Processing theme: {theme_dir.name}") + + # Create (name, bg) to layout_item mapping + layout_map = {} + for layout_item in layout_data.get("layout", []): + bg_filename = layout_item.get("bg", "") + name = layout_item.get("name", "") + if bg_filename and name: + key = (name, bg_filename) + layout_map[key] = layout_item + + # Get all PNG files in theme directory + for img_file in theme_dir.glob("*.png"): + img_filename = img_file.name + + # Find matching layouts (need to match both name and bg) + matching_keys = [key for key in layout_map.keys() if key[1] == img_filename] + + if not matching_keys: + continue # No matching layout found + + # Process corresponding image for each matching key + for (name, bg_filename), layout_item in layout_map.items(): + if bg_filename != img_filename: + continue + + # Find the image file + img_path = theme_dir / bg_filename + if not img_path.exists(): + print(f" Skipping: {bg_filename} not found") + continue + + # Open image + try: + img = Image.open(img_path) + + # Ensure image has alpha channel + if img.mode != 'RGBA': + img = img.convert('RGBA') + + # Check for rotate attribute + rotate_angle = layout_item.get("rotate", 0) + + # Get image dimensions + width, height = img.size + pixels = img.load() + + # Process screen0 area + screen0_x = layout_item.get("screen0_x", 0) + screen0_y = layout_item.get("screen0_y", 0) + screen0_w = layout_item.get("screen0_w", 0) + screen0_h = layout_item.get("screen0_h", 0) + + # Swap w and h if rotated + if rotate_angle in [90, 270]: + screen0_w, screen0_h = screen0_h, screen0_w + + if screen0_w > 0 and screen0_h > 0: + for sy in range(screen0_y, screen0_y + screen0_h): + for sx in range(screen0_x, screen0_x + screen0_w): + if 0 <= sy < height and 0 <= sx < width: + pixels[sx, sy] = (0, 0, 0, 0) + + # Process screen1 area + screen1_x = layout_item.get("screen1_x", 0) + screen1_y = layout_item.get("screen1_y", 0) + screen1_w = layout_item.get("screen1_w", 0) + screen1_h = layout_item.get("screen1_h", 0) + + # Swap w and h if rotated + if rotate_angle in [90, 270]: + screen1_w, screen1_h = screen1_h, screen1_w + + if screen1_w > 0 and screen1_h > 0: + for sy in range(screen1_y, screen1_y + screen1_h): + for sx in range(screen1_x, screen1_x + screen1_w): + if 0 <= sy < height and 0 <= sx < width: + pixels[sx, sy] = (0, 0, 0, 0) + + # Save image + img.save(img_path, "PNG") + print(f" Processed: {bg_filename} (name: {name}, rotate: {rotate_angle})") + + # Remove from map after processing to avoid duplicate processing + del layout_map[(name, bg_filename)] + break # Process each layout only once + + except Exception as e: + print(f" Error: {bg_filename} - {e}") + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description='Process NDS bezel images, make screen areas transparent based on layout.json') + parser.add_argument('path', help='Directory path containing layout.json and images', nargs='?', default='/mnt/e/bezels/nds/bg') + + args = parser.parse_args() + + process_bezel_images(args.path) + print("\nProcessing complete!") \ No newline at end of file