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
| | |-+  Rockbox dev: 2048 - low contrast and misaligned screen contents
« previous next »
  • Print
Pages: [1]

Author Topic: Rockbox dev: 2048 - low contrast and misaligned screen contents  (Read 2507 times)

Offline mcc01

  • Member
  • *
  • Posts: 69
Rockbox dev: 2048 - low contrast and misaligned screen contents
« on: August 17, 2014, 06:33:08 AM »
Hi,

Today I built rockbox dev from source.
Installation works fine.

Unfortunately the game "2-48" is barely playable on
the Clip Zip since the contrast of the "chess board" is very low
and "something" (cannot recognize for sure what it is) is
overwriting the boards from the left side of the screen.

Is there a way to fix it beside removing/changing the code itsself?

Best regards,
mcc
Logged

Offline __builtin

  • Developer
  • Member
  • *
  • Posts: 385
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: Rockbox dev: 2048 - low contrast and misaligned screen contents
« Reply #1 on: August 17, 2014, 02:53:56 PM »
I am the author of 2048! ;)

The "something" you are talking about is the score that is going into the board: http://forums.rockbox.org/index.php/topic,48355.msg229098.html#msg229098
The way the game decides how to draw the score is like this:

1. "Score: " in UI font
2. "Score: " in system font
3. "S: " in UI font
4. "S: " in system font
5. No prefix in UI font
6. No prefix in system font

However, on devices with small screens like the Clip Zip, even option 6 doesn't make the score fit so it still overflows into the grid.
Therefore,I will push a patch that will make it so the game does not draw the score at all if option 6 doesn't work.
Have fun (when it's fixed)! :)
Logged
No support questions by PM, please.

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Rockbox dev: 2048 - low contrast and misaligned screen contents
« Reply #2 on: August 17, 2014, 03:04:36 PM »
That solution makes zero sense, without a score, its useless, and it sounds like even if it weren't drawing over areas it shouldn't its still largely unplayable.

Just disable it for this target.


[Saint]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline __builtin

  • Developer
  • Member
  • *
  • Posts: 385
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: Rockbox dev: 2048 - low contrast and misaligned screen contents
« Reply #3 on: August 17, 2014, 04:53:19 PM »
It runs fine in the simulator: http://forums.rockbox.org/index.php/topic,48355.msg229098.html#msg229098
Logged
No support questions by PM, please.

Offline mcc01

  • Member
  • *
  • Posts: 69
Re: Rockbox dev: 2048 - low contrast and misaligned screen contents
« Reply #4 on: August 19, 2014, 01:07:12 PM »
HI,

thank you for all the replies ! :)

Some ideas/suggestions:
Binding the font to settings like "the <function> font" instead
of "Times Roman 19 pt" (EXAMPLE ONLY) results the need of assigning
fonts to settings based on the readability of a game instead of the
theme/ui/system font.
Whats about a configuration option ot let the user decide, which font
s/he wants to use with the game and only for the game?

Highscore:
I think the highscore is not needed to be visible all the time while
playing. What about to put is on the screen which apears when
pressing SELECT for a longer time? Selecting the highscore then and
pressing SELECT again jumps back to the game.

Disableing 2048 for the Sansa Clip ZIP:
This is the most simplistic solution.
But it has nothing more to offer than simplicity.


Best regards,
mcc
Logged

Offline __builtin

  • Developer
  • Member
  • *
  • Posts: 385
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: Rockbox dev: 2048 - low contrast and misaligned screen contents
« Reply #5 on: August 19, 2014, 02:58:46 PM »
Quote from: mcc01 on August 19, 2014, 01:07:12 PM
HI,

thank you for all the replies ! :)

Some ideas/suggestions:
Binding the font to settings like "the <function> font" instead
of "Times Roman 19 pt" (EXAMPLE ONLY) results the need of assigning
fonts to settings based on the readability of a game instead of the
theme/ui/system font.
Whats about a configuration option ot let the user decide, which font
s/he wants to use with the game and only for the game?

Highscore:
I think the highscore is not needed to be visible all the time while
playing. What about to put is on the screen which apears when
pressing SELECT for a longer time? Selecting the highscore then and
pressing SELECT again jumps back to the game.

Disableing 2048 for the Sansa Clip ZIP:
This is the most simplistic solution.
But it has nothing more to offer than simplicity.


Best regards,
mcc

mcc, 2048 runs perfectly fine on the Clip Zip, why would I want to disable it? :)
The problem with having a fixed font is that people might not have all the fonts installed, so the game will use whatever font the user has selected in the settings menu, and then the system font if that doesn't fit.

Personally, I prefer having the high score showing, but if you want to hide it, you can comment out lines 375 to 420 in the file apps/plugins/2048.c and rebuild+install.
Enjoy the choice :)
« Last Edit: August 19, 2014, 04:13:24 PM by theunamedguy »
Logged
No support questions by PM, please.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  Rockbox dev: 2048 - low contrast and misaligned screen contents
 

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

Page created in 0.072 seconds with 16 queries.