Skip to content

Commit beddde6

Browse files
committed
fix: path corrections
1 parent 2428606 commit beddde6

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

skia/cmakelists.dhall

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ cmake.cmakelistsToText cmake.cmakelists::{
1414
}
1515
, projectName = "imgui_skia_exe"
1616
, cxxflags = ["-std=c++${Natural/show common.cppstd}" ] # common.cxxflags # common.stdlibFlags
17-
--# [ , "-I\${CMAKE_CURRENT_LIST_DIR}/../skia_minimal/imgui_w_hooks_1.91.9_wip"
18-
-- , "-I\${CMAKE_CURRENT_LIST_DIR}/../skia_minimal/imgui_skia_impl"
19-
-- , "-I\${CMAKE_CURRENT_LIST_DIR}/../skia_minimal/imgui_skia_driver_impl"
20-
-- , "-I\${CMAKE_CURRENT_LIST_DIR}/../../contrib/skia"
21-
-- , "-I\${CMAKE_CURRENT_LIST_DIR}/../../contrib/flatbuffers/include"
22-
-- , "-I\${CMAKE_CURRENT_LIST_DIR}/../../contrib/sdl/include"
23-
-- , "-I\${CMAKE_CURRENT_LIST_DIR}/../../contrib/tracy/public"
24-
-- ]
2517
, ldflags = common.ldflags # common.stdlibFlags
2618
, sourceTreeParts = common.sourceTreeParts
2719
, librarySourceTreeParts = common.librarySourceTreeParts
@@ -30,4 +22,4 @@ cmake.cmakelistsToText cmake.cmakelists::{
3022
}
3123
++ "add_library(libimgui_skia STATIC IMPORTED)\n"
3224
++ "set_target_properties(libimgui_skia PROPERTIES IMPORTED_LOCATION \"\${CMAKE_CURRENT_LIST_DIR}/../skia_minimal/build/libimgui_skia.a\")\n"
33-
++ "target_link_libraries(imzeroClientSkiaSdl3Impl libimgui_skia)\n"
25+
++ "target_link_libraries(imzeroClientSkiaSdl3Impl libimgui_skia)\n"

skia/dhall/sourceTreeParts.dhall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let lib = ../../dhall/lib.dhall
22
let prelude = ../../dhall/prelude.dhall
33
let sourceTreePart = lib.sourceTreePart
4-
let path = \(loc : prelude.Location.Type) -> "${env:IMGUI_SKIA_CPP_ROOT as Text}/skia2/${lib.locationToString loc}"
4+
let path = \(loc : prelude.Location.Type) -> "${env:IMGUI_SKIA_CPP_ROOT as Text}/skia/${lib.locationToString loc}"
55
let imguiImplot = let dir = path (../src/widgets/imgui_implot as Location) in sourceTreePart::{
66
, name = "imguiImplot"
77
, dir = dir

skia_minimal/imgui_skia_impl/imgui_skia_hooks_impl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ namespace ImGui {
209209
bool Hooks::Global::Pre::RenderDimmedBackdgroundBehindWindow(::ImGuiWindow *window, ImU32 col) {
210210
return false;
211211
}
212-
bool Hooks::Global::Pre::InputTextCalcTextSize(::ImVec2 &out, const ::ImGuiContext* ctx, const char* text_begin, const char* text_end, const char** remaining, ImVec2* out_offset, bool stop_on_new_line) {
212+
bool Hooks::Global::Pre::InputTextCalcTextSize(::ImVec2 &out, ::ImGuiContext* ctx, const char* text_begin, const char* text_end, const char** remaining, ImVec2* out_offset, bool stop_on_new_line) {
213213
if (!ImGui::useVectorCmd) {
214214
return true;
215215
}
@@ -333,7 +333,7 @@ namespace ImGui {
333333
int Hooks::ImDrawListSplitter::MergeUpdate(::ImDrawListSplitter &splitter,int i,int prev) {
334334
return prev + static_cast<int>(splitter._ChannelsFbCmds[i]->size());
335335
}
336-
void Hooks::ImDrawListSplitter::MergeReserve(const ::ImDrawList *drawList, const int n) {
336+
void Hooks::ImDrawListSplitter::MergeReserve(::ImDrawList *drawList, const int n) {
337337
drawList->_FbCmds->reserve(drawList->_FbCmds->size() + n);
338338
}
339339
void Hooks::ImDrawListSplitter::MergeOp(::ImDrawListSplitter &splitter,::ImDrawList *drawList,int i) { ZoneScopedN("serialize and add split draw list");

0 commit comments

Comments
 (0)