mirror of
https://github.com/memononen/nanovg
synced 2026-09-26 16:19:07 +03:00
Merge pull request #604 from mulle-nat/ci
Continous Integration for nanvog
This commit is contained in:
commit
077b65e0cf
2 changed files with 29 additions and 1 deletions
28
.github/workflows/ci.yml
vendored
Normal file
28
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
name: CI
|
||||
|
||||
on: [push]
|
||||
|
||||
env:
|
||||
BUILD_TYPE: release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ ubuntu-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install required packages
|
||||
run: sudo apt-get install premake4 build-essential libglfw3-dev libglew-dev pkg-config
|
||||
|
||||
- name: Premake
|
||||
run: premake4 gmake
|
||||
|
||||
# due to glew problems with in the current ubuntu-latest, we don't build the examples (yet)
|
||||
# https://github.com/openai/mujoco-py/issues/383 has the same problem for reference
|
||||
# this doesn't happen in focal
|
||||
- name: Make
|
||||
run: cd build && make nanovg
|
||||
|
|
@ -2470,7 +2470,7 @@ float nvgText(NVGcontext* ctx, float x, float y, const char* string, const char*
|
|||
float invscale = 1.0f / scale;
|
||||
int cverts = 0;
|
||||
int nverts = 0;
|
||||
int isFlipped = nvg__isTransformFlipped(xform);
|
||||
int isFlipped = nvg__isTransformFlipped(state->xform);
|
||||
|
||||
if (end == NULL)
|
||||
end = string + strlen(string);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue