… | |
… | |
963 | strcpy (fstr, "default"); |
963 | strcpy (fstr, "default"); |
964 | strcpy (bstr, "default"); |
964 | strcpy (bstr, "default"); |
965 | for (i = Color_Black; i <= Color_White; i++) |
965 | for (i = Color_Black; i <= Color_White; i++) |
966 | if (pix_colors[Color_fg] == pix_colors[i]) |
966 | if (pix_colors[Color_fg] == pix_colors[i]) |
967 | { |
967 | { |
968 | sprintf (fstr, "%d", (i - Color_Black)); |
968 | sprintf (fstr, "%d", i - Color_Black); |
969 | break; |
969 | break; |
970 | } |
970 | } |
971 | |
971 | |
972 | for (i = Color_Black; i <= Color_White; i++) |
972 | for (i = Color_Black; i <= Color_White; i++) |
973 | if (pix_colors[Color_bg] == pix_colors[i]) |
973 | if (pix_colors[Color_bg] == pix_colors[i]) |
974 | { |
974 | { |
975 | sprintf (bstr, "%d", (i - Color_Black)); |
975 | sprintf (bstr, "%d", i - Color_Black); |
976 | #ifdef BG_IMAGE_FROM_FILE |
976 | #ifdef BG_IMAGE_FROM_FILE |
977 | xpmb = "default;"; |
977 | xpmb = "default;"; |
978 | #endif |
978 | #endif |
979 | break; |
979 | break; |
980 | } |
980 | } |