Skip to content

Commit f0aeecd

Browse files
committed
Set IMGUI_VERSION_TAG to v1.92.6-docking for C.I.
- Replace IM_ARRAYSIZE ImGui macro with IM_COUNTOF - Fix compilation with renamed nCine image savers
1 parent 5dd8018 commit f0aeecd

14 files changed

Lines changed: 22 additions & 22 deletions

.github/workflows/android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
Push artifact from GitHub Actions build ${{ github.run_number }} with id ${{ github.run_id }}
88
99
- PROJECT_NAME artifact from branch 'BRANCH_NAME' with commit id ${{ github.sha }}
10-
IMGUI_VERSION_TAG: v1.92.5-docking
10+
IMGUI_VERSION_TAG: v1.92.6-docking
1111

1212
on: [push, workflow_dispatch]
1313

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: 'CodeQL'
33
env:
44
LIBRARIES_BRANCH: libraries-OS-COMPILER
55
NCINE_SOURCE_BRANCH: BRANCH_NAME
6-
IMGUI_VERSION_TAG: v1.92.5-docking
6+
IMGUI_VERSION_TAG: v1.92.6-docking
77

88
on: [push, workflow_dispatch]
99

.github/workflows/emscripten.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
99
- PROJECT_NAME artifact from branch 'BRANCH_NAME' with commit id ${{ github.sha }}
1010
DEPLOY_BRANCH: PROJECT_NAME-BRANCH_NAME-OS-COMPILER
11-
IMGUI_VERSION_TAG: v1.92.5-docking
11+
IMGUI_VERSION_TAG: v1.92.6-docking
1212

1313
on: [push, workflow_dispatch]
1414

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
99
- PROJECT_NAME artifact from branch 'BRANCH_NAME' with commit id ${{ github.sha }}
1010
DEPLOY_BRANCH: PROJECT_NAME-BRANCH_NAME-OS-COMPILER
11-
IMGUI_VERSION_TAG: v1.92.5-docking
11+
IMGUI_VERSION_TAG: v1.92.6-docking
1212

1313
on: [push, workflow_dispatch]
1414

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
99
- PROJECT_NAME artifact from branch 'BRANCH_NAME' with commit id ${{ github.sha }}
1010
DEPLOY_BRANCH: PROJECT_NAME-BRANCH_NAME-OS-COMPILER
11-
IMGUI_VERSION_TAG: v1.92.5-docking
11+
IMGUI_VERSION_TAG: v1.92.6-docking
1212

1313
on: [push, workflow_dispatch]
1414

.github/workflows/mingw.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
99
- PROJECT_NAME artifact from branch 'BRANCH_NAME' with commit id ${{ github.sha }}
1010
DEPLOY_BRANCH: PROJECT_NAME-BRANCH_NAME-OS-COMPILER
11-
IMGUI_VERSION_TAG: v1.92.5-docking
11+
IMGUI_VERSION_TAG: v1.92.6-docking
1212

1313
on: [push, workflow_dispatch]
1414

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
99
- PROJECT_NAME artifact from branch 'BRANCH_NAME' with commit id ${{ github.sha }}
1010
DEPLOY_BRANCH: PROJECT_NAME-BRANCH_NAME-OS-COMPILER
11-
IMGUI_VERSION_TAG: v1.92.5-docking
11+
IMGUI_VERSION_TAG: v1.92.6-docking
1212

1313
on: [push, workflow_dispatch]
1414

src/Canvas.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <ncine/Application.h>
66
#include <ncine/GLTexture.h>
77
#include <ncine/GLFramebufferObject.h>
8-
#include <ncine/TextureSaverPng.h>
8+
#include <ncine/ImageSaverPng.h>
99

1010
#include "shader_strings.h"
1111

@@ -110,12 +110,12 @@ void Canvas::save(const char *filename)
110110
fbo_->unbind();
111111
#endif
112112

113-
nc::TextureSaverPng saver;
114-
nc::ITextureSaver::Properties props;
113+
nc::ImageSaverPng saver;
114+
nc::IImageSaver::Properties props;
115115
props.width = texWidth_;
116116
props.height = texHeight_;
117117
props.pixels = pixels_.get();
118-
props.format = nc::ITextureSaver::Format::RGBA8;
118+
props.format = nc::IImageSaver::Format::RGBA8;
119119
saver.saveToFile(props, filename);
120120
}
121121

src/gui/AnimationWindow.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ void AnimationWindow::createDelayAnimationGui(IAnimation &anim)
113113
void AnimationWindow::createLoopAnimationGui(LoopComponent &loop)
114114
{
115115
int currentLoopDirection = static_cast<int>(loop.direction());
116-
ImGui::Combo("Direction", &currentLoopDirection, loopDirections, IM_ARRAYSIZE(loopDirections));
116+
ImGui::Combo("Direction", &currentLoopDirection, loopDirections, IM_COUNTOF(loopDirections));
117117
loop.setDirection(static_cast<Loop::Direction>(currentLoopDirection));
118118

119119
int currentLoopMode = static_cast<int>(loop.mode());
120-
ImGui::Combo("Loop Mode", &currentLoopMode, loopModes, IM_ARRAYSIZE(loopModes));
120+
ImGui::Combo("Loop Mode", &currentLoopMode, loopModes, IM_COUNTOF(loopModes));
121121
loop.setMode(static_cast<Loop::Mode>(currentLoopMode));
122122

123123
if (loop.mode() != Loop::Mode::DISABLED)
@@ -197,7 +197,7 @@ void AnimationWindow::createCurveAnimationGui(CurveAnimation &anim, const CurveA
197197
createDelayAnimationGui(anim);
198198

199199
int currentComboCurveType = static_cast<int>(anim.curve().type());
200-
ImGui::Combo("Easing Curve", &currentComboCurveType, easingCurveTypes, IM_ARRAYSIZE(easingCurveTypes));
200+
ImGui::Combo("Easing Curve", &currentComboCurveType, easingCurveTypes, IM_COUNTOF(easingCurveTypes));
201201
anim.curve().setType(static_cast<EasingCurve::Type>(currentComboCurveType));
202202

203203
createLoopAnimationGui(anim.curve().loop());
@@ -356,7 +356,7 @@ void AnimationWindow::createPropertyAnimationGui(PropertyAnimation &anim)
356356
currentComboProperty = static_cast<Properties::Types>(anim.propertyType());
357357

358358
bool setCurveShift = false;
359-
if (ImGui::Combo("Property", &currentComboProperty, Properties::Strings, IM_ARRAYSIZE(Properties::Strings)))
359+
if (ImGui::Combo("Property", &currentComboProperty, Properties::Strings, IM_COUNTOF(Properties::Strings)))
360360
setCurveShift = true;
361361
anim.setProperty(static_cast<Properties::Types>(currentComboProperty));
362362
switch (currentComboProperty)

src/gui/AnimationsWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void AnimationsWindow::create()
7676

7777
static int currentComboAnimType = 0;
7878
ImGui::PushItemWidth(ImGui::GetFontSize() * 12.0f);
79-
ImGui::Combo("Type", &currentComboAnimType, animationTypes, IM_ARRAYSIZE(animationTypes));
79+
ImGui::Combo("Type", &currentComboAnimType, animationTypes, IM_COUNTOF(animationTypes));
8080
ImGui::PopItemWidth();
8181
ImGui::SameLine();
8282
if (ImGui::Button(Labels::Add))

0 commit comments

Comments
 (0)