Kill off some usages of c_str.

Also changes some function params, but this is ok.
Some simplifications were also able to be made (ie. killing off strcmps with ==, etc).
This commit is contained in:
Lioncash
2014-03-12 15:33:41 -04:00
parent dccc6d8b47
commit a82675b7d5
170 changed files with 812 additions and 704 deletions

View File

@ -1,5 +1,6 @@
#pragma once
#include <string>
#include "VideoCommon/RenderBase.h"
namespace OGL
@ -27,8 +28,8 @@ extern struct VideoConfig {
bool bSupportOGL31;
bool bSupportViewportFloat;
const char *gl_vendor;
const char *gl_renderer;
const char* gl_vendor;
const char* gl_renderer;
const char* gl_version;
const char* glsl_version;
@ -60,7 +61,7 @@ public:
void ApplyState(bool bUseDstAlpha) override {}
void RestoreState() override {}
void RenderText(const char* pstr, int left, int top, u32 color) override;
void RenderText(const std::string& text, int left, int top, u32 color) override;
void DrawDebugInfo();
void FlipImageData(u8 *data, int w, int h, int pixel_width = 3);