Search found 567 matches

by PEB
Wed Dec 29, 2021 4:51 am
Forum: Hollywood bugs
Topic: Bug with Proportional Scaling in RapaGUI 2.0 on Android
Replies: 13
Views: 10823

Re: Bug with Proportional Scaling in RapaGUI 2.0 on Android

Revisiting an issue that has been troubling me for a while now... The following code fixes the proportional scaling issue (kind of). But the problem is that it requires a SystemRequest() message to be used. Without the message, the scaling is wrong (too long in Portrait mode and too short in Landsca...
by PEB
Sun Sep 19, 2021 4:38 am
Forum: Hollywood bugs
Topic: Wrong value for ATTRHEIGHT
Replies: 5
Views: 2988

Re: Wrong value for ATTRHEIGHT

Constants such as #ATTRWIDTH and #ATTRHEIGHT have number values assigned to them (0 and 1 respectively). DebugPrint(#ATTRWIDTH, #ATTRHEIGHT) But when you weren't using the constants, ATTRWIDTH and ATTRHEIGHT were taken as variables that had not yet been assigned a value, so they were equal to zero (...
by PEB
Sun Sep 19, 2021 12:59 am
Forum: Hollywood bugs
Topic: Wrong value for ATTRHEIGHT
Replies: 5
Views: 2988

Re: Wrong value for ATTRHEIGHT

Your code is a bit wrong.
Try this instead:

Code: Select all

DebugPrint(GetAttribute(#DISPLAY, 1, #ATTRWIDTH))
DebugPrint(GetAttribute(#DISPLAY, 1, #ATTRHEIGHT))
by PEB
Fri Aug 27, 2021 3:19 am
Forum: Hollywood bugs
Topic: Bug with Proportional Scaling in RapaGUI 2.0 on Android
Replies: 13
Views: 10823

Re: Bug with Proportional Scaling in RapaGUI 2.0 on Android

I think the problem might be solved by delaying things like moai.get("Main", "Height") and GetAttribute(#DISPLAY, 1, #ATTRSCALEHEIGHT) until after the display has settled on its new attributes. It seems like the numbers are different initially (when first started and right after ...
by PEB
Thu Aug 19, 2021 12:14 am
Forum: Hollywood bugs
Topic: Bug with Proportional Scaling in RapaGUI 2.0 on Android
Replies: 13
Views: 10823

Re: Bug with Proportional Scaling in RapaGUI 2.0 on Android

It probably goes back to the Hollywood 8 version of the Android player.
by PEB
Sun Aug 15, 2021 8:40 am
Forum: Hollywood bugs
Topic: Bug with Proportional Scaling in RapaGUI 2.0 on Android
Replies: 13
Views: 10823

Re: Bug with Proportional Scaling in RapaGUI 2.0 on Android

With the newest RapaGUI (and Hollywood Player for Android), the code that worked before has a couple problems now. I found a workaround for one of the problems by delaying the first scaling using SetTimeout(), though there's probably a better way of handling that. (See code below.) However, the scal...
by PEB
Thu Jul 29, 2021 6:59 am
Forum: RapaGUI
Topic: RaiseOnError() with RapaGUI on Latest Android Player
Replies: 9
Views: 4184

Re: RaiseOnError() with RapaGUI on Latest Android Player

Yes, RunCallback() does work and is better. Thanks for the suggestion!
(I keep forgetting to use that new function.) :oops:
by PEB
Sun Jul 25, 2021 7:09 am
Forum: RapaGUI
Topic: RaiseOnError() with RapaGUI on Latest Android Player
Replies: 9
Views: 4184

Re: RaiseOnError() with RapaGUI on Latest Android Player

If it's a hard one to fix, this might be a good enough work-around: @REQUIRE "RapaGUI" Function p_CustomErrorMessage(msg) SystemRequest("Debug Output", "Code: "..msg.userdata[0].."\nString: "..msg.userdata[1].."\nCommand: "..msg.userdata[2].."\n...
by PEB
Thu Jul 22, 2021 6:29 am
Forum: RapaGUI
Topic: RaiseOnError() with RapaGUI on Latest Android Player
Replies: 9
Views: 4184

Re: RaiseOnError() with RapaGUI on Latest Android Player

This error is still showing up with the latest Android Player. @REQUIRE "RapaGUI" Function p_ErrorHandler(ErrCode, ErrStr$, ErrCmd, ErrLine) SystemRequest("Debug Output", "Code: "..ErrCode.."\nString: "..ErrStr$.."\nCommand: "..ErrCmd.."\nLine: ...