Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  RockBoy Display Issues on AGPTEK Rocker
« previous next »
  • Print
Pages: [1]

Author Topic: RockBoy Display Issues on AGPTEK Rocker  (Read 2365 times)

Offline MrFoxhead

  • Member
  • *
  • Posts: 10
RockBoy Display Issues on AGPTEK Rocker
« on: March 26, 2018, 09:03:11 AM »
Hi, I'm having this annoying issue with Rockboy
Basically, the screen is like it has a light blue tint, altering the colors.
I've tried replacing the Rockboy.rock with the one for the Zen Mozaic and the one from my old iPod install, but both have the same issue.
Attaching pic related to show the color alteration

* _IMG_000000_000000.jpg (64.39 kB, 2418x2418 - viewed 342 times.)
Logged

Offline alcaier

  • Member
  • *
  • Posts: 8
Re: RockBoy Display Issues on AGPTEK Rocker
« Reply #1 on: March 26, 2018, 04:24:32 PM »
This patch should fix it. gba bas higher resolution than agptek so some of the pixels will be missing which for instance makes text harder to read. Could be made better with antialiasing but.. meh..
If there are problems with the keymap look at
https://github.com/wodz/rockbox-wodz/commit/103f963d646f29e2958d8f44c24d1e85d8ff3e94 and post your changes.
Oh yeah, buttons A and B should be swapped for rockboy.

It should be possible to change font size by installing theme from http://themes.rockbox.org/ but I am not sure which player would have display size close to 128x160 that of agptek.

Code: [Select]
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c
index 31bab1c..3a1f3c6 100644
--- a/apps/plugins/rockboy/sys_rockbox.c
+++ b/apps/plugins/rockboy/sys_rockbox.c
@@ -261,7 +261,7 @@ void vid_init(void)
     fb.enabled=1;
 
 #if defined(HAVE_LCD_COLOR)
-#if LCD_DEPTH == 24
+#if LCD_DEPTH >= 24
     fb.cc[0].r = 0;  /* 8-8 (wasted bits on red) */
     fb.cc[0].l = 16; /* this is the offset to the R bits (24-8) */
     fb.cc[1].r = 0;  /* 8-6 (wasted bits on green) */
« Last Edit: March 26, 2018, 05:03:18 PM by alcaier »
Logged

Offline MrFoxhead

  • Member
  • *
  • Posts: 10
Re: RockBoy Display Issues on AGPTEK Rocker
« Reply #2 on: March 26, 2018, 05:27:25 PM »
Quote from: alcaier on March 26, 2018, 04:24:32 PM
This patch should fix it. gba bas higher resolution than agptek so some of the pixels will be missing which for instance makes text harder to read. Could be made better with antialiasing but.. meh..
If there are problems with the keymap look at
https://github.com/wodz/rockbox-wodz/commit/103f963d646f29e2958d8f44c24d1e85d8ff3e94 and post your changes.
Oh yeah, buttons A and B should be swapped for rockboy.

It should be possible to change font size by installing theme from http://themes.rockbox.org/ but I am not sure which player would have display size close to 128x160 that of agptek.

Code: [Select]
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c
index 31bab1c..3a1f3c6 100644
--- a/apps/plugins/rockboy/sys_rockbox.c
+++ b/apps/plugins/rockboy/sys_rockbox.c
@@ -261,7 +261,7 @@ void vid_init(void)
     fb.enabled=1;
 
 #if defined(HAVE_LCD_COLOR)
-#if LCD_DEPTH == 24
+#if LCD_DEPTH >= 24
     fb.cc[0].r = 0;  /* 8-8 (wasted bits on red) */
     fb.cc[0].l = 16; /* this is the offset to the R bits (24-8) */
     fb.cc[1].r = 0;  /* 8-6 (wasted bits on green) */
No, the problem is not the missing 16 horizontal pixels (AGPTEK has the same screen as the Zen Mozaic and similar targets) nor the button mapping which can be easily changed trough the Rockboy settings, but rather the light blue tint on the area where the emulator screen is drawn.
If you set the orientation to off without stretching (if enabled it makes the AGPTEK freeze or gives back a segmentation error), you can see what I mean with light blue tint, since I can't post a pic of it right now.
Logged

Offline alcaier

  • Member
  • *
  • Posts: 8
Re: RockBoy Display Issues on AGPTEK Rocker
« Reply #3 on: March 26, 2018, 06:35:40 PM »
Quote from: MrFoxhead on March 26, 2018, 05:27:25 PM
Quote from: alcaier on March 26, 2018, 04:24:32 PM
This patch should fix it. gba bas higher resolution than agptek so some of the pixels will be missing which for instance makes text harder to read. Could be made better with antialiasing but.. meh..
If there are problems with the keymap look at
https://github.com/wodz/rockbox-wodz/commit/103f963d646f29e2958d8f44c24d1e85d8ff3e94 and post your changes.
Oh yeah, buttons A and B should be swapped for rockboy.

It should be possible to change font size by installing theme from http://themes.rockbox.org/ but I am not sure which player would have display size close to 128x160 that of agptek.

Code: [Select]
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c
index 31bab1c..3a1f3c6 100644
--- a/apps/plugins/rockboy/sys_rockbox.c
+++ b/apps/plugins/rockboy/sys_rockbox.c
@@ -261,7 +261,7 @@ void vid_init(void)
     fb.enabled=1;
 
 #if defined(HAVE_LCD_COLOR)
-#if LCD_DEPTH == 24
+#if LCD_DEPTH >= 24
     fb.cc[0].r = 0;  /* 8-8 (wasted bits on red) */
     fb.cc[0].l = 16; /* this is the offset to the R bits (24-8) */
     fb.cc[1].r = 0;  /* 8-6 (wasted bits on green) */
No, the problem is not the missing 16 horizontal pixels (AGPTEK has the same screen as the Zen Mozaic and similar targets) nor the button mapping which can be easily changed trough the Rockboy settings, but rather the light blue tint on the area where the emulator screen is drawn.
If you set the orientation to off without stretching (if enabled it makes the AGPTEK freeze or gives back a segmentation error), you can see what I mean with light blue tint, since I can't post a pic of it right now.

Well, the patch above fixes one palette issue that certainly is going to mess up the colors. gbc colors seem to match original as far as I can tell.
I noticed that if I play some music and then start gbc game, it will not start because of lack of memory. I am wondering if some of these seemingly random segfaults could be caused by eg. malloc returning null. Kernel does not seem to support swap file but one could try if it is more stable with say 512mb swap partition.
Logged

Offline MrFoxhead

  • Member
  • *
  • Posts: 10
Re: RockBoy Display Issues on AGPTEK Rocker
« Reply #4 on: March 26, 2018, 06:51:00 PM »
So, now the question is:
How do I apply that patch?
I'll admit I'm pretty newb with such things.
And concering the memory boundaries, (for me at least) It's not such a big issue since the music will be covered by the game sound anyways, but swapping between memory and the swap file might slow down the emulation tho
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: RockBoy Display Issues on AGPTEK Rocker
« Reply #5 on: March 26, 2018, 07:54:31 PM »
Quote from: MrFoxhead on March 26, 2018, 06:51:00 PM
So, now the question is:
How do I apply that patch?

https://www.rockbox.org/wiki/WorkingWithPatches

In the future, please put generic rockbox questions in the proper forum or thread rather than development threads.
Logged

Offline alcaier

  • Member
  • *
  • Posts: 8
Re: RockBoy Display Issues on AGPTEK Rocker
« Reply #6 on: March 26, 2018, 08:09:40 PM »
Quote from: MrFoxhead on March 26, 2018, 06:51:00 PM
So, now the question is:
How do I apply that patch?
I'll admit I'm pretty newb with such things.
And concering the memory boundaries, (for me at least) It's not such a big issue since the music will be covered by the game sound anyways, but swapping between memory and the swap file might slow down the emulation tho
I uploaded patched rockboy.rock to https://uploadfiles.io/v63vb It should go to .rockbox/rocks/viewers/ .
There seems to be no support for swap at all with this kernel. If there would of been it could make it little easier to see if there are memory leaks somewhere that is causing the segfaults.  I cannot seem to be able to make gbc emulation crash with or without scaling.

There are some usable themes at http://themes.rockbox.org/index.php?target=creativezenmozaic like lebellium .
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  RockBoy Display Issues on AGPTEK Rocker
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.03 seconds with 15 queries.