Search found 4319 matches

by freak
Sun Nov 16, 2025 3:14 pm
Forum: Bugs - Windows
Topic: DashPath() does not scale correctly
Replies: 3
Views: 858

Re: DashPath() does not scale correctly

Lebostein wrote: Thu Oct 30, 2025 7:24 am Seems the problem is Windows-only. On macOS, both examples work as expected.
Yes. This is a GDI+ bug that I could not find a workaround for that works in all cases. The problem is also the cause of this bug report: viewtopic.php?p=515364
by freak
Sun Oct 26, 2025 9:25 pm
Forum: Bugs - Windows
Topic: [Done] PB 5.50b2 - vector fonts not scaled properly to printer
Replies: 6
Views: 3596

Re: PB 5.50b2 - vector fonts not scaled properly to printer

This is not a bug in my opinion.

If you use VectorFont() without a Size parameter, the original Size from LoadFont() is used, but interpreted in Points, not in your current output unit (in this case Pixels).

If you use VectorFont() with the size parameter then that parameter is interpreted in your ...
by freak
Sun Oct 26, 2025 8:55 am
Forum: Bugs - Windows
Topic: [Done] PureUnit triggers GUI alert on fail
Replies: 4
Views: 1389

Re: PureUnit triggers GUI alert on fail

Fixed.

It is now allowed to use Modules in unit test code. You can even place test procedures inside modules, but they must be declared as public, otherwise there is an error.
by freak
Wed Oct 01, 2025 9:12 pm
Forum: Bugs - Windows
Topic: [Done] PureUnit triggers GUI alert on fail
Replies: 4
Views: 1389

Re: PureUnit triggers GUI alert on fail

It is because the whole thing is not aware of modules. The macros think you are running the test code without PureUnit because they cannot see the framework procedures and so the macros fall back to a MessageRequester() for the alert.

It needs to be reworked to properly support modules.
by freak
Sun Sep 14, 2025 9:42 pm
Forum: Bugs - Windows
Topic: [Done] PB 6.20 B3 PathCursor after RotateCoordinates
Replies: 2
Views: 6582

Re: [Done] PB 6.20 B3 PathCursor after RotateCoordinates

Ok, so there is a difference with the other OS:

If you have not done anything with the path yet, coordinate transformations do not affect the start point and it stays at (0, 0)
If you used any path command, the last cursor position is affected by the transformation

I have changed it to work ...
by freak
Sun Sep 14, 2025 8:21 pm
Forum: Bugs - Windows
Topic: [Done] PB 6.20 B3 PathCursor after RotateCoordinates
Replies: 2
Views: 6582

Re: [Done] PB 6.20 B3 PathCursor after RotateCoordinates

This is the expected behavior.

Rotating the coordinate system only affects commands after it. The cursor location remained unchanged by it. However, when you call PathPointX() after, you get the coordinates of the OLD (0, 0) expressed in the new, rotated coordinate system. That is why the result is ...
by freak
Mon Sep 08, 2025 8:36 pm
Forum: Off Topic
Topic: I might finally be getting a promotion!
Replies: 11
Views: 2238

I might finally be getting a promotion!

I got contacted by the PureBasic HR Department today. Seems like my day has finally come :lol:


MEMO for all Purebasic Employees

2025 LEAVE AND PROMOTION SCHEDULES FOR ALL THE STAFF OF Purebasic

Dear Freak,

Kindly refer to the below url to find out where your Leave schedules for the current ...
by freak
Tue May 13, 2025 6:08 pm
Forum: Coding Questions
Topic: Pseudorandom number with PB internal Random
Replies: 21
Views: 2912

Re: Pseudorandom number with PB internal Random

Today I started to afraid, that it will change one day, and my numbers also changes with it.

You can rest easy with this. The Random() and RandomSeed() commands have not changed their behavior since the very early years of PureBasic, even through an entire rewrite of the code and the switch ...
by freak
Sat May 03, 2025 11:35 am
Forum: Coding Questions
Topic: DisableDebugger: Invalid memory access
Replies: 4
Views: 598

Re: DisableDebugger: Invalid memory access

BarryG wrote: Sat May 03, 2025 11:00 amMaybe this report can be for the actual error line to be highlighted, then. ;)
No it can't because you disabled the debugger which is tracking these kinds of things. That is why it shows the last line when the debugger was still on.
by freak
Sat Feb 15, 2025 3:03 pm
Forum: General Discussion
Topic: Every Day...
Replies: 6
Views: 1210

Re: Every Day...

"git branch list" vs "git branch --list"

I am safe from this because I use "-a" instead :)
by freak
Wed Aug 14, 2024 4:36 pm
Forum: Coding Questions
Topic: [done] Struggle parsing mixed type JSON array
Replies: 2
Views: 1432

Re: Struggle parsing mixed type JSON array

ExamineJSONMembers() is the wrong function to use here because it is only for JSON Objects not for Arrays.

What you need is:
JSONArraySize() to find out the size of the array GetJSONElement() to get the individual elements JSONType() to find the type of the element GetJSONInteger() or ...