@@ -252,7 +252,7 @@ send_graphics_data_to_gpu(size_t image_count, ssize_t gvao_idx, const ImageRende
252252static inline void
253253cell_update_uniform_block (ssize_t vao_idx , Screen * screen , int uniform_buffer , GLfloat xstart , GLfloat ystart , GLfloat dx , GLfloat dy , CursorRenderInfo * cursor , bool inverted , OSWindow * os_window ) {
254254 struct CellRenderData {
255- GLfloat xstart , ystart , dx , dy , sprite_dx , sprite_dy , background_opacity , cursor_text_uses_bg ;
255+ GLfloat xstart , ystart , dx , dy , sprite_dx , sprite_dy , background_opacity , foreground_opacity , cursor_text_uses_bg ;
256256
257257 GLuint default_fg , default_bg , highlight_fg , highlight_bg , cursor_color , cursor_text_color , url_color , url_style , inverted ;
258258
@@ -295,6 +295,7 @@ cell_update_uniform_block(ssize_t vao_idx, Screen *screen, int uniform_buffer, G
295295 rd -> sprite_dx = 1.0f / (float )x ; rd -> sprite_dy = 1.0f / (float )y ;
296296 rd -> inverted = inverted ? 1 : 0 ;
297297 rd -> background_opacity = os_window -> is_semi_transparent ? os_window -> background_opacity : 1.0f ;
298+ rd -> foreground_opacity = os_window -> is_semi_transparent ? OPT (foreground_opacity ) : 1.0f ;
298299
299300#define COLOR (name ) colorprofile_to_color(screen->color_profile, screen->color_profile->overridden.name, screen->color_profile->configured.name)
300301 rd -> default_fg = COLOR (default_fg ); rd -> default_bg = COLOR (default_bg ); rd -> highlight_fg = COLOR (highlight_fg ); rd -> highlight_bg = COLOR (highlight_bg );
0 commit comments