Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • wlroots wlroots
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 345
    • Issues 345
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 138
    • Merge requests 138
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • wlrootswlroots
  • wlrootswlroots
  • Merge requests
  • !3312

scene: fix scaling of negative coordinates

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Simon Ser requested to merge github/fork/zsugabubus/scale-round into master Oct 28, 2021
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: zsugabubus

round() rounds away from zero that can cause unwanted lengthening of dimensions when sides of box differ in their sign:

scale_length(2, -1, 1.5) == 4 (-1.5 -> -2; 1.5 -> 2) scale_length(2, 1, 1.5) == 3

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/zsugabubus/scale-round