mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Cleanup Camera related code and uses constant references where possible, fixes #5408.
Patch By: shh Reviewed By: wraitii Tested By: Angen Commented By: Stan, Itms, historic_bruno Differential Revision: https://code.wildfiregames.com/D1784 This was SVN commit r23034.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2014 Wildfire Games.
|
||||
/* Copyright (C) 2019 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -76,7 +76,8 @@ void EditableListCtrl::OnMouseEvent(wxMouseEvent& event)
|
||||
wxPoint pt = event.GetPosition();
|
||||
int col = GetColumnAtPosition(pt);
|
||||
|
||||
wxCHECK2(col >= 0 && col < (int)m_ColumnTypes.size(), return);
|
||||
if (col < 0 || col >= static_cast<int>(m_ColumnTypes.size()))
|
||||
return;
|
||||
|
||||
int flags;
|
||||
long row = HitTest(pt, flags);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2009 Wildfire Games.
|
||||
/* Copyright (C) 2019 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -51,7 +51,7 @@ AtlasDialog::AtlasDialog(wxWindow* parent, const wxString& title, const wxSize&
|
||||
|
||||
|
||||
wxBoxSizer* buttonSizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
mainSizer->Add(buttonSizer, wxSizerFlags().Expand().Align(wxALIGN_RIGHT).Border(wxALL, 5));
|
||||
mainSizer->Add(buttonSizer, wxSizerFlags().Expand().Border(wxALL, 5));
|
||||
|
||||
buttonSizer->Add(new wxButton(this, wxID_OK, _("OK")), wxSizerFlags().Border(wxRIGHT, 25));
|
||||
buttonSizer->Add(new wxButton(this, wxID_CANCEL, _("Cancel")), wxSizerFlags().Border(wxRIGHT, 5));
|
||||
|
||||
Reference in New Issue
Block a user