Skip to content

Commit

Permalink
修改了一个小bug
Browse files Browse the repository at this point in the history
  • Loading branch information
UNLOSTER committed Jul 11, 2021
1 parent e2f1244 commit 9d68d39
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cross Line/About.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void CAbout::draw_Text()
LOGFONT font;
gettextstyle(&font);
font.lfQuality = ANTIALIASED_QUALITY;
wcscpy_s(font.lfFaceName, TEXT("微软雅黑 Light"));
wcscpy_s(font.lfFaceName, TEXT("微软雅黑"));

// 绘制标题
font.lfHeight = 75;
Expand Down
2 changes: 1 addition & 1 deletion Cross Line/Begin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void CBegin::draw_Title()
gettextstyle(&font);
font.lfHeight = 75;
font.lfQuality = ANTIALIASED_QUALITY;
wcscpy_s(font.lfFaceName, TEXT("微软雅黑 Light"));
wcscpy_s(font.lfFaceName, TEXT("微软雅黑"));
settextstyle(&font);
settextcolor(TEXT_COLOR);
outtextxy( (WIN_WIDTH - textwidth( GAME_NAME)) / 2,
Expand Down
6 changes: 3 additions & 3 deletions Cross Line/Level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,14 @@ void CLevel::inter_Face_Running()
}

// 关闭按钮
cb = 0;
if (close_button.if_Mouse_On(msg))
{
cb = 1;

if (msg.uMsg == WM_LBUTTONUP)
return;
}
else
cb = 0;

// 关卡按钮
for (int i = 1; i <= pass_num; i++)
Expand All @@ -79,6 +78,7 @@ void CLevel::inter_Face_Running()
in->inter_Face_Running();
delete in;
in = NULL;
lb[i] = 0;
}
}
}
Expand All @@ -99,7 +99,7 @@ void CLevel::inter_Face_Running()
}
else
{
close_button.set_Image(TEXT_COLOR);
close_button.set_Image(image.close_Button(TEXT_COLOR));
close_button.draw_Button();
}

Expand Down
3 changes: 3 additions & 0 deletions Cross Line/Play.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ void CPlay::inter_Face_Running()
rb = 1;

if (msg.uMsg == WM_LBUTTONUP)
{
msg.uMsg = NULL;
return;
}
}
else
rb = 0;
Expand Down
2 changes: 1 addition & 1 deletion Cross Line/Win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void CWin::draw_Title()
LOGFONT font;
gettextstyle(&font);
font.lfQuality = ANTIALIASED_QUALITY;
wcscpy_s(font.lfFaceName, TEXT("微软雅黑 Light"));
wcscpy_s(font.lfFaceName, TEXT("微软雅黑"));

// 大标题
font.lfHeight = 75;
Expand Down

0 comments on commit 9d68d39

Please sign in to comment.