applet not working correctly

Report any Hollywood bugs here
Post Reply
User avatar
Redlion
Posts: 71
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

applet not working correctly

Post by Redlion » Thu Mar 08, 2018 12:45 pm

Hi,

Since the Hollywood player has been updated my app does not run properly on my android phone.

All the boxes that should be solid colours are just outlines. I think it has something to do with SetFillStyle()

I recompiled the applet in Hollywood 7.1 but that did not make any difference.

The app run fine as an exe in windows 10 and on AmigaOS 4..1

Is anyone else having this problem.

Regards

Leo
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32

User avatar
airsoftsoftwair
Posts: 2484
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: applet not working correctly

Post by airsoftsoftwair » Thu Mar 08, 2018 3:56 pm

Can you post a minimal code sample?

User avatar
Redlion
Posts: 71
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

Re: applet not working correctly

Post by Redlion » Fri Mar 09, 2018 12:51 am

Hi,

This is a minimal bit of code that displays the problem, I first noticed it about the same time as you released the new HW7 Player.

Code: Select all

@DISPLAY 1, {Width=1280, Height=800, Color=$000000, Title=" SQUARES by Leo den Hollander"}

ColourTable = { $FFFFFF, $FF4C40, $EDEA1D, $3FE228, $1D32FD, $2F2F2F, $02F8EF, $2288E8, $048C15, $CA22D7, $FE7765, $FFFFFF }

Dim Squares[12][7]
Dim Redo[12][7]

Function Splash() ; Splash Screen buttons ---------------------------------------------------------
SetFont(#SANS,140)
SetFontStyle(#ANTIALIAS)
SetFontColor(#RED)
TextOut(325,70," SQUARES ")
SetFont(#SANS, 28)
SetFontStyle(#ANTIALIAS)
SetFontColor(RGB(0,255,0))
TextOut(525,200," by Leo den Hollander ")
SetFont(#SANS, 18)
SetFontStyle(#ANTIALIAS)
SetFontColor(#WHITE)
TextOut(565,730," Test Hollywood 7.1 ")
SetFont(#SANS, 50)
SetFontStyle(#ANTIALIAS)
SetFontColor(#BLACK)
MakeButton(1,#SIMPLEBUTTON,550,212,200,100,{OnMouseUp = Start})
  SetFillStyle(#FILLCOLOR)
  Box(550,256,200,100,#YELLOW,{RoundLevel = 25})
  SetFillStyle(#FILLNONE)
  TextOut(590,280," EASY ")
MakeButton(2,#SIMPLEBUTTON,550,395,200,100,{OnMouseUp = Start})
  SetFillStyle(#FILLCOLOR)
  Box(550,415,200,100,#YELLOW,{RoundLevel = 25})
   SetFillStyle(#FILLNONE)
   TextOut(585,439," HARD ")
MakeButton(3,#SIMPLEBUTTON,550,577,200,100,{OnMouseUp = Start})
  SetFillStyle(#FILLCOLOR)
  Box(550,572,200,100,#YELLOW,{RoundLevel = 25})
   SetFillStyle(#FILLNONE)
   TextOut(558,601," CANCEL ")
EndFunction

Function Start(msg) ; Splash Screen ---------------------------------------------------------------
  Switch msg.action
    Case "OnMouseUp":
      If msg.id = 1
       SetFillStyle(#FILLCOLOR)
       Box(5,5,1200,795,$000000)
     EndIf
     If msg.id = 2
       SetFillStyle(#FILLCOLOR)
       Box(5,5,1200,795,$000000)
     EndIf
     If msg.id = 3
       End
     EndIf
   EndSwitch
EndFunction

; Escape ******************************************************************************************
EscapeQuit(True)

; Main Program Loop *******************************************************************************

Splash()

Repeat
    WaitEvent
Forever
Everything else works except the boxes.

Cheers

Leo
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32

User avatar
airsoftsoftwair
Posts: 2484
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: applet not working correctly

Post by airsoftsoftwair » Sun Mar 11, 2018 11:10 pm

Right, I can confirm this. Will be fixed.

User avatar
airsoftsoftwair
Posts: 2484
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: applet not working correctly

Post by airsoftsoftwair » Tue Apr 10, 2018 9:14 pm

Code: Select all

- Fix [Android/64-bit]: Polygons were always drawn in outline mode even when the filling mode was set to #FILLCOLOR

User avatar
Redlion
Posts: 71
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

Re: applet not working correctly

Post by Redlion » Wed Apr 11, 2018 1:24 pm

@ airsoftsoftwair

HI,

How do I apply this fix, do I have to download the Hollywood player again, or do I have to wait for HW7.2 to come out?

Cheers
Leo
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32

User avatar
airsoftsoftwair
Posts: 2484
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: applet not working correctly

Post by airsoftsoftwair » Fri Apr 13, 2018 5:28 pm

You could use the 32-bit version of the Hollywood Player 7.1 because that is not affected. It's a 64-bit issue.

User avatar
Redlion
Posts: 71
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

Re: applet not working correctly

Post by Redlion » Tue Apr 17, 2018 5:04 am

@ airsoftsoftwair

HI,

I am trying to run the applet on an android phone, how do I select the 32 bit version for android.

Cheers
Leo
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32

User avatar
airsoftsoftwair
Posts: 2484
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: applet not working correctly

Post by airsoftsoftwair » Wed Apr 18, 2018 7:11 pm

Oh, sorry, this doesn't seem to be possible on Google Play. But no worries, I have just uploaded a fixed version to Google Play. This should be available in a few hours. Check the about screen. If it shows 18th April, 2018 as the build date you have the fixed version..

User avatar
Redlion
Posts: 71
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

Re: applet not working correctly

Post by Redlion » Mon Apr 23, 2018 12:37 am

@ airsoftsoftwair

Hi,

All seems to be working on my android phone now.

Thanks

leo
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32

Post Reply