It is currently Sat Apr 21, 2018 11:46 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: [Done] RotatedText diferent angle in OS?
PostPosted: Sun Feb 19, 2017 12:23 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jul 08, 2013 8:43 pm
Posts: 224
I run the example rotated text and return diferent results.
Code:
  If OpenWindow(0, 0, 0, 200, 200, "2DDrawing Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    If CreateImage(0, 200, 200) And StartDrawing(ImageOutput(0))
      Box(0, 0, 200, 200, RGB(255, 255, 255))
      For Angle = 0 To 360 Step 45
        DrawRotatedText(100, 100, "Hello World!", Angle, RGB(0, 0, 0))
      Next Angle
      StopDrawing()
      ImageGadget(0, 0, 0, 200, 200, ImageID(0))
    EndIf
   
    Repeat
      Event = WaitWindowEvent()
    Until Event = #PB_Event_CloseWindow
  EndIf


Windows angle is correct.
OSX angle is inverse? :shock:
Linux Ubuntu16 no have effect.

Im using PB 5.60 Beta 3. or may be the beta?
Greetings!

_________________
If translation=Error: reply="Sorry, Im Spanish": Endif


Top
 Profile  
Reply with quote  
 Post subject: Re: RotatedText diferent angle in OS?
PostPosted: Sun Feb 19, 2017 1:47 pm 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 850
On Linux you must use for this Subsystem gtk2, write this exactely so in the PB compiler options
gtk3 is presetted on PB, its to time a unfixed PB bug

_________________
http://www.nachtoptik.de - The home of GFX_Wizzard_BF (BF) and QUICK_AES_256


Top
 Profile  
Reply with quote  
 Post subject: Re: RotatedText diferent angle in OS?
PostPosted: Sun Feb 19, 2017 3:42 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jul 08, 2013 8:43 pm
Posts: 224
Thanks a lot @walbus!
Now all is working like a RollsRoyce! :D

_________________
If translation=Error: reply="Sorry, Im Spanish": Endif


Top
 Profile  
Reply with quote  
 Post subject: Re: RotatedText diferent angle in OS?
PostPosted: Thu Nov 02, 2017 10:17 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5760
Location: Germany
I get the same rotation angle as on Windows (positive is counter-clockwise) with PB 5.61 & 5.45. Can somebody confirm this bug?

The gtk3 issue is fixed btw.

_________________
quidquid Latine dictum sit altum videtur


Top
 Profile  
Reply with quote  
 Post subject: Re: RotatedText diferent angle in OS?
PostPosted: Sat Nov 04, 2017 10:31 am 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 21, 2005 2:38 pm
Posts: 1498
Location: Germany
I have taken the example code for DrawRotatedText() from PB's help and have changed (for clarity) the angle loop from 360 degrees to 90 degrees (only 3 steps). These are the results:

MacOS 10.9.5 'Mavericks' and MacOS 10.13 'High Sierra' with PB 5.61 x86 and x64
Image

Linux Mint 18.1 'Serena' x64 with PB 5.61 x64 and GTK+ 2
Image


Linux Mint 18.1 'Serena' x64 with PB 5.61 x64 and GTK+ 3
Image


Windows 7 SP1 x64 with PB 5.61 x86 and x64
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: RotatedText diferent angle in OS?
PostPosted: Sun Nov 05, 2017 7:11 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Jun 26, 2014 9:17 am
Posts: 281
Location: Germany
The Linux-gtk3 issue seems to be fixed in PB5.46B1 (Tested on Xubuntu x32/14.04, Xubuntu x64/17.04, Mint 18.3 x64 KDE)

_________________
PureBasic 5.3-5.5, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit)
PureBasic Linux-API-Library & Viewer: http://www.chabba.de


Top
 Profile  
Reply with quote  
 Post subject: Re: RotatedText diferent angle in OS?
PostPosted: Sun Nov 05, 2017 5:33 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 21, 2005 2:38 pm
Posts: 1498
Location: Germany
Oma wrote:
The Linux-gtk3 issue seems to be fixed in PB5.46B1

Confirmed for Linux Mint 18.1 'Serena' x64 with PB 5.46 x64 Beta 1 and GTK+ 3:
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: RotatedText diferent angle in OS?
PostPosted: Sun Nov 05, 2017 8:33 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5760
Location: Germany
The rotation point for OSX is fixed as well in 5.46, so everything should be the same now.

_________________
quidquid Latine dictum sit altum videtur


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye