Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/TextRenderer.h
/* Copyright (C) 2012 Wildfire Games. | /* Copyright (C) 2018 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | private: | ||||
* externally-owned string) with a position. | * externally-owned string) with a position. | ||||
*/ | */ | ||||
struct SBatchRun | struct SBatchRun | ||||
{ | { | ||||
private: | private: | ||||
SBatchRun& operator=(const SBatchRun&); | SBatchRun& operator=(const SBatchRun&); | ||||
public: | public: | ||||
SBatchRun() | SBatchRun() | ||||
: text(NULL), owned(false) | : text(nullptr), owned(false) | ||||
{ | { | ||||
} | } | ||||
SBatchRun(const SBatchRun& str) | SBatchRun(const SBatchRun& str) | ||||
: x(str.x), y(str.y), owned(str.owned) | : x(str.x), y(str.y), owned(str.owned) | ||||
{ | { | ||||
if (owned) | if (owned) | ||||
text = new std::wstring(*str.text); | text = new std::wstring(*str.text); | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator