Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
std-microblock authored Aug 9, 2024
1 parent 1d9f170 commit e1ac060
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::{
path::{Path, PathBuf},
rc::Rc,
};
use winapi::um::winuser::ShowWindow;


extern crate msgbox;

Expand Down Expand Up @@ -781,6 +781,7 @@ impl Handler {
{
#[cfg(not(debug_assertions))]
{
use winapi::um::winuser::ShowWindow;
use winapi::um::winuser::{ShowWindow, SW_SHOW};
unsafe {
ShowWindow(winapi::um::wincon::GetConsoleWindow(), SW_SHOW);
Expand Down Expand Up @@ -840,6 +841,7 @@ fn main() {
// windows only
#[cfg(windows)]
{
use winapi::um::winuser::ShowWindow;
use winapi::um::winuser::SetProcessDPIAware;
unsafe {
SetProcessDPIAware();
Expand Down

0 comments on commit e1ac060

Please sign in to comment.