xterm-addon-webgl
Advanced tools
Comparing version 0.4.0-beta.13 to 0.4.0-beta.14
@@ -399,18 +399,2 @@ "use strict"; | ||
} | ||
function getFgColor(fg) { | ||
switch (fg & 50331648) { | ||
case 16777216: | ||
case 33554432: return fg & 255; | ||
case 50331648: return fg & 16777215; | ||
default: return -1; | ||
} | ||
} | ||
function getBgColor(bg) { | ||
switch (bg & 50331648) { | ||
case 16777216: | ||
case 33554432: return bg & 255; | ||
case 50331648: return bg & 16777215; | ||
default: return -1; | ||
} | ||
} | ||
//# sourceMappingURL=WebglCharAtlas.js.map |
{ | ||
"name": "xterm-addon-webgl", | ||
"version": "0.4.0-beta.13", | ||
"version": "0.4.0-beta.14", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "The xterm.js authors", |
@@ -9,3 +9,3 @@ /** | ||
import { IRasterizedGlyph, IBoundingBox, IRasterizedGlyphSet } from '../Types'; | ||
import { DEFAULT_COLOR, FgFlags, Attributes, BgFlags } from 'common/buffer/Constants'; | ||
import { DEFAULT_COLOR, Attributes } from 'common/buffer/Constants'; | ||
import { throwIfFalsy } from '../WebglUtils'; | ||
@@ -534,18 +534,1 @@ import { IColor } from 'browser/Types'; | ||
} | ||
function getFgColor(fg: number): number { | ||
switch (fg & Attributes.CM_MASK) { | ||
case Attributes.CM_P16: | ||
case Attributes.CM_P256: return fg & Attributes.PCOLOR_MASK; | ||
case Attributes.CM_RGB: return fg & Attributes.RGB_MASK; | ||
default: return -1; // CM_DEFAULT defaults to -1 | ||
} | ||
} | ||
function getBgColor(bg: number): number { | ||
switch (bg & Attributes.CM_MASK) { | ||
case Attributes.CM_P16: | ||
case Attributes.CM_P256: return bg & Attributes.PCOLOR_MASK; | ||
case Attributes.CM_RGB: return bg & Attributes.RGB_MASK; | ||
default: return -1; // CM_DEFAULT defaults to -1 | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
598787
4812