Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 700696
Collapse All | Expand All

(-)a/src/Board.cc (-5 / +6 lines)
Lines 297-308 void Board::on_map() Link Here
297
297
298
bool Board::on_configure_event(GdkEventConfigure* ev)
298
bool Board::on_configure_event(GdkEventConfigure* ev)
299
{
299
{
300
	//if(ui_pixmap)
301
	//	return true;
302
	ui_pixmap = Gdk::Pixmap::create(this->get_window(),get_width(),get_height());
300
	ui_pixmap = Gdk::Pixmap::create(this->get_window(),get_width(),get_height());
303
301
304
	redraw();
302
	if(ui_pixmap) {
305
303
		redraw();
304
		return true;
305
	}
306
	return false;
306
}
307
}
307
bool Board::on_expose_event(GdkEventExpose* ev)
308
bool Board::on_expose_event(GdkEventExpose* ev)
308
{
309
{
Lines 1146-1152 bool Board::robot_log(const Glib::IOCondition& condition) Link Here
1146
1147
1147
	if (buf_len > 0) {
1148
	if (buf_len > 0) {
1148
		*p = 0;
1149
		*p = 0;
1149
		printf(buf);
1150
		printf("%s",buf);
1150
		std::string str_buf(buf);
1151
		std::string str_buf(buf);
1151
		parent.show_textview_engine_log(str_buf);
1152
		parent.show_textview_engine_log(str_buf);
1152
1153
(-)a/src/ConfWindow.cc (-1 / +1 lines)
Lines 117-123 void ConfWindow::on_button_color_set() Link Here
117
bool ConfWindow::on_delete_event(GdkEventAny*)
117
bool ConfWindow::on_delete_event(GdkEventAny*)
118
{
118
{
119
	on_button_cancel();
119
	on_button_cancel();
120
120
	return(true);
121
}
121
}
122
void ConfWindow::write_to_GMConf()
122
void ConfWindow::write_to_GMConf()
123
{
123
{
(-)a/src/Engine.cc (-2 / +2 lines)
Lines 509-515 bool Engine::mate() Link Here
509
				case RED_KNIGHT:
509
				case RED_KNIGHT:
510
				case BLACK_KNIGHT:
510
				case BLACK_KNIGHT:
511
					for(int k=0;k<8;k++){
511
					for(int k=0;k<8;k++){
512
						dst=src+ KingMoveTab[k];
512
						dst=src+ KnightMoveTab[k];
513
						if(in_board(dst)){
513
						if(in_board(dst)){
514
							int mv = get_move(src,dst);
514
							int mv = get_move(src,dst);
515
							if(make_move(mv)){
515
							if(make_move(mv)){
Lines 2098-2104 uint32_t Engine::hanzi_to_iccs(uint32_t f_hanzi) Link Here
2098
							n++;
2098
							n++;
2099
						}
2099
						}
2100
					}
2100
					}
2101
					DLOG(" n=%d\n");
2101
					DLOG(" n=%d\n", n);
2102
					/** 为纵线上的棋子排序*/
2102
					/** 为纵线上的棋子排序*/
2103
					for(int k=start;k<n-1;k++)
2103
					for(int k=start;k<n-1;k++)
2104
						for(int j=n-2;j>=k;j--){
2104
						for(int j=n-2;j>=k;j--){
(-)a/src/MainWindow.cc (+1 lines)
Lines 1176-1181 bool MainWindow::on_end_game(OVERSTATUS _over) Link Here
1176
			auto_save_chess_file();
1176
			auto_save_chess_file();
1177
		board->free_game(false);
1177
		board->free_game(false);
1178
		set_status();
1178
		set_status();
1179
	return(true);
1179
}
1180
}
1180
1181
1181
void MainWindow::set_red_war_time(const Glib::ustring& f_time,const Glib::ustring& c_time)
1182
void MainWindow::set_red_war_time(const Glib::ustring& f_time,const Glib::ustring& c_time)
(-)a/src/Sound.cc (-3 / +3 lines)
Lines 78-84 void CSound::play_file(const char* filename) Link Here
78
{
78
{
79
	gchar* argv[3];
79
	gchar* argv[3];
80
#ifdef __linux__
80
#ifdef __linux__
81
	argv[0] = "aplay";
81
	argv[0] = (gchar *)"aplay";
82
#elif __APPLE__
82
#elif __APPLE__
83
	argv[0] = "afplay";
83
	argv[0] = "afplay";
84
#endif
84
#endif
85
-- gmchess-0.29.6/src/engine/cchess.cpp
85
++ gmchess-0.29.6/src/engine/cchess.cpp
Lines 690-696 Link Here
690
    }
690
    }
691
    lpSrc ++;
691
    lpSrc ++;
692
  };
692
  };
693
  while(lpSrc != '\0' && lpDst < lpDstLimit) {
693
  while(lpSrc != NULL && lpDst < lpDstLimit) {
694
    *lpDst = *lpSrc;
694
    *lpDst = *lpSrc;
695
    lpSrc ++;
695
    lpSrc ++;
696
    lpDst ++;
696
    lpDst ++;

Return to bug 700696