mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Compilation warning fix
This commit is contained in:
@@ -41,7 +41,7 @@ std::vector< ShadingProgram > maskPrograms = {
|
|||||||
const char* MaskShader::mask_names[3] = { ICON_FA_EXPAND, ICON_FA_EDIT, ICON_FA_SHAPES };
|
const char* MaskShader::mask_names[3] = { ICON_FA_EXPAND, ICON_FA_EDIT, ICON_FA_SHAPES };
|
||||||
const char* MaskShader::mask_shapes[5] = { "Elipse", "Oblong", "Rectangle", "Horizontal", "Vertical" };
|
const char* MaskShader::mask_shapes[5] = { "Elipse", "Oblong", "Rectangle", "Horizontal", "Vertical" };
|
||||||
|
|
||||||
ImageShader::ImageShader(): Shader(), stipple(0.f), mask_texture(0)
|
ImageShader::ImageShader(): Shader(), mask_texture(0), stipple(0.f)
|
||||||
{
|
{
|
||||||
// static program shader
|
// static program shader
|
||||||
program_ = &imageShadingProgram;
|
program_ = &imageShadingProgram;
|
||||||
|
|||||||
@@ -840,7 +840,7 @@ void TextureView::draw()
|
|||||||
// disabled info
|
// disabled info
|
||||||
else {
|
else {
|
||||||
ImGui::SameLine(0, 60);
|
ImGui::SameLine(0, 60);
|
||||||
ImGui::TextDisabled( MaskShader::mask_shapes[shape] );
|
ImGui::TextDisabled( "%s", MaskShader::mask_shapes[shape] );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "mask");
|
ImGui::TextDisabled( "mask");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -475,7 +475,7 @@ void UserInterface::handleMouse()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if not on any window
|
// if not on any window
|
||||||
if ( !ImGui::IsAnyWindowHovered() && !ImGui::IsAnyWindowFocused() )
|
if ( !ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow) && !ImGui::IsWindowFocused(ImGuiHoveredFlags_AnyWindow) )
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// Mouse wheel over background
|
// Mouse wheel over background
|
||||||
|
|||||||
Reference in New Issue
Block a user