MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / createColorMap

Method createColorMap

source/x11/xserver.cpp:1074–1079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1072}
1073
1074U32 XServer::createColorMap(const Visual* visual, int alloc) {
1075 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(colorMapMutex);
1076 XColorMapPtr colorMap = std::make_shared<XColorMap>();
1077 colorMaps.set(colorMap->id, colorMap);
1078 return colorMap->id;
1079}
1080
1081XColorMapPtr XServer::getColorMap(U32 id) {
1082 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(colorMapMutex);

Callers 1

x11_CreateColorMapFunction · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected