src/viewport.cpp
changeset 8320 6ffad7a5d242
parent 8265 9d7c69a31cdc
child 8345 6caa3fdb972c
equal deleted inserted replaced
8319:434ce8c1e463 8320:6ffad7a5d242
  1498 		if (HASBIT(_transparent_opt, TO_SIGNS) && ss->string != STR_2806 && ss->width != 0) {
  1498 		if (HASBIT(_transparent_opt, TO_SIGNS) && ss->string != STR_2806 && ss->width != 0) {
  1499 			/* Real colors need the IS_PALETTE_COLOR flag
  1499 			/* Real colors need the IS_PALETTE_COLOR flag
  1500 			 * otherwise colors from _string_colormap are assumed. */
  1500 			 * otherwise colors from _string_colormap are assumed. */
  1501 			colour = _colour_gradient[ss->color][6] | IS_PALETTE_COLOR;
  1501 			colour = _colour_gradient[ss->color][6] | IS_PALETTE_COLOR;
  1502 		} else {
  1502 		} else {
  1503 			colour = 16;
  1503 			colour = TC_BLACK;
  1504 		}
  1504 		}
  1505 		DrawString(
  1505 		DrawString(
  1506 			UnScaleByZoom(ss->x, zoom), UnScaleByZoom(ss->y, zoom) - (ss->width & 0x8000 ? 2 : 0),
  1506 			UnScaleByZoom(ss->x, zoom), UnScaleByZoom(ss->y, zoom) - (ss->width & 0x8000 ? 2 : 0),
  1507 			ss->string, colour
  1507 			ss->string, colour
  1508 		);
  1508 		);