PSI new screen mode

Yanosh · 1465

Yanosh

  • Member
  • ***
    • Posts: 106
    • Karma: +4/-0
on: August 04, 2019, 06:13:05 PM
Hi. I'm trying to use OWB on its own screen, but I can't find how to set all the fonts I need. There is only one font I can choose, instead of the 3 ones the Wanderer's screen allows to use. This way OWB looks ugly. Can someone help on this?



nikos

  • Senior Member
  • ****
    • Posts: 374
    • Karma: +71/-3
    • aspireos
Reply #1 on: August 05, 2019, 08:50:09 AM
I'm pretty sure the PSI.prefs does not work. At least I never managed to create own Zune (MUI) screenmodes with AROS.


Yanosh

  • Member
  • ***
    • Posts: 106
    • Karma: +4/-0
Reply #2 on: August 06, 2019, 03:23:47 PM
It works for me. I've just created a new 640x480 screen and opened it. The only thing I don't know how to set, are the fonts... I can only set one font and it's the wrong one, because if I open OWB on that screen, the font used are wrong (and ugly).



o1i

  • Newbie
  • *
    • Posts: 41
    • Karma: +6/-0
Reply #3 on: August 07, 2019, 01:53:20 AM
PSI simply only handles one font, as it uses Zunes (MUIs) OpenPubScreen() function, which takes a struct MUI_PubScreenDesc as a parameter.

And this only has one entry for a font name:

struct MUI_PubScreenDesc
{
  LONG  Version;

  char  Name[PSD_MAXLEN_NAME];
  char  Title[PSD_MAXLEN_TITLE];
  char  Font[PSD_MAXLEN_FONT];
  char  Background[PSD_MAXLEN_BACKGROUND];
...
}


So changing that seems to be not trivial, at least on a first look. I think, you can't use MUIs OpenPubScreen() to set the other fonts..?

I guess you should use the Zune Preferences for the specific program to modify those fonts.
« Last Edit: August 07, 2019, 06:48:33 AM by o1i »