Skip to content

[Pebble] poco.origin(x, y) function is applied inconsistently #1626

@EvanDSanders

Description

@EvanDSanders

Build environment: Linux : Kubuntu Focus 24.04
Moddable SDK version: Pebble Tool v5.0.37 (active SDK: v4.9.169)
Target device: Emery / Pebble Time 2

Description
The Pebble Moddable Alloy SDK's poco.origin(x, y); function is applied inconstantly.

  • Text is not affected at all
  • Fill Rectangle is offset twice
  • The Bitmap is applied twice, but the mask/clip is only applied once.

Steps to Reproduce
Install Pebble Tool and SDK v4.9.169 then:

git clone https://github.com/EvanDSanders/alloy-origin-test
cd alloy-origin-test
./run.sh

Expected behavior
All drawing methods should be moved by poco.origin() by the specified amount.

Images

Image

Other information

I think it's related to this file:
commodettoPocoBlit-pebble.c
But I'm not completely sure because I couldn't get a VM to compile with changes to that file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions