overlays/gl: minor fixes
- fix ogl color map for overlay resources - fix label background for save dialog
This commit is contained in:
@@ -397,7 +397,7 @@ namespace gl
|
|||||||
auto tex = std::make_unique<gl::texture>(GL_TEXTURE_2D, desc->w, desc->h, 1, 1, GL_RGBA8);
|
auto tex = std::make_unique<gl::texture>(GL_TEXTURE_2D, desc->w, desc->h, 1, 1, GL_RGBA8);
|
||||||
tex->copy_from(desc->data, gl::texture::format::rgba, gl::texture::type::uint_8_8_8_8);
|
tex->copy_from(desc->data, gl::texture::format::rgba, gl::texture::type::uint_8_8_8_8);
|
||||||
|
|
||||||
GLenum remap[] = { GL_BLUE, GL_GREEN, GL_RED, GL_ALPHA };
|
GLenum remap[] = { GL_RED, GL_ALPHA, GL_BLUE, GL_GREEN };
|
||||||
auto view = std::make_unique<gl::texture_view>(tex.get(), remap);
|
auto view = std::make_unique<gl::texture_view>(tex.get(), remap);
|
||||||
|
|
||||||
auto result = view.get();
|
auto result = view.get();
|
||||||
|
|||||||
@@ -291,6 +291,8 @@ namespace rsx
|
|||||||
static_cast<label*>(m_time_thingy.get())->auto_resize();
|
static_cast<label*>(m_time_thingy.get())->auto_resize();
|
||||||
|
|
||||||
m_dim_background->back_color.a = 0.8f;
|
m_dim_background->back_color.a = 0.8f;
|
||||||
|
m_description->back_color.a = 0.f;
|
||||||
|
m_time_thingy->back_color.a = 0.f;
|
||||||
|
|
||||||
return_code = selection_code::canceled;
|
return_code = selection_code::canceled;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user