diff options
author | 2016-06-13 23:32:47 +1200 | |
---|---|---|
committer | 2016-06-13 23:33:46 +1200 | |
commit | d881a058e41717b11f1d3323c2f5ab41a1dfa0bb (patch) | |
tree | 2e9eeaf96f12bfbfb41542cee640019665948722 /src/osd/modules/debugger/debugimgui.cpp | |
parent | b34540b236b5e2cab08af8b1996eb09e54c5d5ad (diff) |
debugimgui: use IM_COL32 macro
Diffstat (limited to 'src/osd/modules/debugger/debugimgui.cpp')
-rw-r--r-- | src/osd/modules/debugger/debugimgui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/modules/debugger/debugimgui.cpp b/src/osd/modules/debugger/debugimgui.cpp index b935525f8f9..fe2567b07ac 100644 --- a/src/osd/modules/debugger/debugimgui.cpp +++ b/src/osd/modules/debugger/debugimgui.cpp @@ -540,12 +540,12 @@ void debug_imgui::draw_view(debug_area* view_ptr, bool exp_change) { char str[2]; map_attr_to_fg_bg(viewdata->attrib,&fg,&bg); - ImU32 fg_col = ImGui::ColorConvertFloat4ToU32(ImVec4(fg.r()/255.0f,fg.g()/255.0f,fg.b()/255.0f,fg.a()/255.0f)); + ImU32 fg_col = IM_COL32(fg.r(),fg.g(),fg.b(),fg.a()); str[0] = v = viewdata->byte; str[1] = '\0'; if(bg != base) { - ImU32 bg_col = ImGui::ColorConvertFloat4ToU32(ImVec4(bg.r()/255.0f,bg.g()/255.0f,bg.b()/255.0f,bg.a()/255.0f)); + ImU32 bg_col = IM_COL32(bg.r(),bg.g(),bg.b(),bg.a()); xy1.x++; xy2.x++; drawlist->AddRectFilled(xy1,xy2,bg_col); xy1.x--; xy2.x--; @@ -564,7 +564,7 @@ void debug_imgui::draw_view(debug_area* view_ptr, bool exp_change) // draw a rect around a view if it has focus if(view_ptr->has_focus) { - ImU32 col = ImGui::ColorConvertFloat4ToU32(ImVec4(0.5f,0.5f,0.5f,0.3f)); + ImU32 col = IM_COL32(127,127,127,76); drawlist->AddRect(ImVec2(view_ptr->ofs_x,view_ptr->ofs_y + ImGui::GetScrollY()), ImVec2(view_ptr->ofs_x + view_ptr->view_width,view_ptr->ofs_y + ImGui::GetScrollY() + view_ptr->view_height),col); } |