mirror of
https://github.com/alacritty/alacritty.git
synced 2025-05-26 18:32:18 -04:00
Remove unnecessary statics
This commit is contained in:
parent
713e89a6c5
commit
8731d157be
4 changed files with 7 additions and 7 deletions
|
@ -44,7 +44,7 @@ use crate::display::SizeInfo;
|
|||
|
||||
/// Window icon for `_NET_WM_ICON` property.
|
||||
#[cfg(all(feature = "x11", not(any(target_os = "macos", windows))))]
|
||||
static WINDOW_ICON: &[u8] = include_bytes!("../../extra/logo/compat/alacritty-term.png");
|
||||
const WINDOW_ICON: &[u8] = include_bytes!("../../extra/logo/compat/alacritty-term.png");
|
||||
|
||||
/// This should match the definition of IDI_ICON from `alacritty.rc`.
|
||||
#[cfg(windows)]
|
||||
|
|
|
@ -228,8 +228,8 @@ impl RenderLines {
|
|||
}
|
||||
|
||||
/// Shader sources for rect rendering program.
|
||||
static RECT_SHADER_F: &str = include_str!("../../res/rect.f.glsl");
|
||||
static RECT_SHADER_V: &str = include_str!("../../res/rect.v.glsl");
|
||||
const RECT_SHADER_F: &str = include_str!("../../res/rect.f.glsl");
|
||||
const RECT_SHADER_V: &str = include_str!("../../res/rect.v.glsl");
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
|
|
|
@ -20,8 +20,8 @@ use super::{
|
|||
};
|
||||
|
||||
// Shader source.
|
||||
static TEXT_SHADER_F: &str = include_str!("../../../res/gles2/text.f.glsl");
|
||||
static TEXT_SHADER_V: &str = include_str!("../../../res/gles2/text.v.glsl");
|
||||
const TEXT_SHADER_F: &str = include_str!("../../../res/gles2/text.f.glsl");
|
||||
const TEXT_SHADER_V: &str = include_str!("../../../res/gles2/text.v.glsl");
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Gles2Renderer {
|
||||
|
|
|
@ -20,8 +20,8 @@ use super::{
|
|||
};
|
||||
|
||||
// Shader source.
|
||||
pub static TEXT_SHADER_F: &str = include_str!("../../../res/glsl3/text.f.glsl");
|
||||
static TEXT_SHADER_V: &str = include_str!("../../../res/glsl3/text.v.glsl");
|
||||
pub const TEXT_SHADER_F: &str = include_str!("../../../res/glsl3/text.f.glsl");
|
||||
const TEXT_SHADER_V: &str = include_str!("../../../res/glsl3/text.v.glsl");
|
||||
|
||||
/// Maximum items to be drawn in a batch.
|
||||
const BATCH_MAX: usize = 0x1_0000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue