Removed duplicate calls.
This commit is contained in:
@@ -323,7 +323,6 @@ Java_net_rubygrapefruit_platform_internal_jni_WindowsConsoleFunctions_bold(JNIEn
|
|||||||
JNIEXPORT void JNICALL
|
JNIEXPORT void JNICALL
|
||||||
Java_net_rubygrapefruit_platform_internal_jni_WindowsConsoleFunctions_normal(JNIEnv *env, jclass target, jobject result) {
|
Java_net_rubygrapefruit_platform_internal_jni_WindowsConsoleFunctions_normal(JNIEnv *env, jclass target, jobject result) {
|
||||||
current_attributes &= ~FOREGROUND_INTENSITY;
|
current_attributes &= ~FOREGROUND_INTENSITY;
|
||||||
SetConsoleTextAttribute(current_console, current_attributes);
|
|
||||||
if (!SetConsoleTextAttribute(current_console, current_attributes)) {
|
if (!SetConsoleTextAttribute(current_console, current_attributes)) {
|
||||||
mark_failed_with_errno(env, "could not set text attributes", result);
|
mark_failed_with_errno(env, "could not set text attributes", result);
|
||||||
}
|
}
|
||||||
@@ -366,7 +365,6 @@ Java_net_rubygrapefruit_platform_internal_jni_WindowsConsoleFunctions_foreground
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetConsoleTextAttribute(current_console, current_attributes);
|
|
||||||
if (!SetConsoleTextAttribute(current_console, current_attributes)) {
|
if (!SetConsoleTextAttribute(current_console, current_attributes)) {
|
||||||
mark_failed_with_errno(env, "could not set text attributes", result);
|
mark_failed_with_errno(env, "could not set text attributes", result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user