Page 1 of 1

QT vs GTK2 Coordinate Value Rounding

Posted: Fri Jul 02, 2021 12:44 pm
by BIOS
Different behavior on QT and GTK2 subsystem, like GTK2 makes Round for coords on line 6-7

Code: Select all

#X = 0.999999

Define *Image = CreateImage(#PB_Any, 3, 3)

StartVectorDrawing(ImageVectorOutput(*Image))
MovePathCursor(#X, 0)
AddPathLine(#X, 3)
VectorSourceColor($FFFFFFFF)
StrokePath(1)
StopVectorDrawing()

UsePNGImageEncoder()
SaveImage(*Image, GetCurrentDirectory() + "ImageQtBug.png")
Result images for different subsystems:
GTK2: https://sea.ver0.ru/f/0ccee3df23ca4f6787b0/?dl=1
QT: https://sea.ver0.ru/f/9b428b8bab0e483b9174/?dl=1

Re: [PB 5.73 LTS x64] QT vs GTK2 Coordinate Value Rounding

Posted: Sat Jul 27, 2024 5:42 pm
by Fred
Subsystems can vary slightly, is the bug significant ?