mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-04-15 23:51:02 +00:00
fix: This should be '>=' instead of '==='
This commit is contained in:
parent
070d510578
commit
3073fd4573
@ -162,7 +162,7 @@ cc.js.mixin(LetterAtlas.prototype, {
|
||||
|
||||
for (let i = 0; i < this.frees.length; i++) {
|
||||
const freeLetter = this.frees[i];
|
||||
if (freeLetter._width === width && freeLetter._height === height) {
|
||||
if (freeLetter._width >= width && freeLetter._height >= height) {
|
||||
areaFit = freeLetter._width * freeLetter._height - width * height;
|
||||
if (areaFit < score) {
|
||||
original = freeLetter;
|
||||
|
Loading…
x
Reference in New Issue
Block a user