File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -3150,6 +3150,7 @@ impl Connection {
3150
3150
. map ( |t| t. 0 = Instant :: now ( ) ) ;
3151
3151
}
3152
3152
3153
+ #[ cfg( feature = "hwcodec" ) ]
3153
3154
fn update_supported_encoding ( & mut self ) {
3154
3155
let Some ( last) = & self . last_supported_encoding else {
3155
3156
return ;
Original file line number Diff line number Diff line change @@ -549,9 +549,13 @@ pub mod client {
549
549
let mut max_pixel = 0 ;
550
550
let align = 64 ;
551
551
for d in displays {
552
- let pixel = utils:: align ( d. width ( ) , align) * utils:: align ( d. height ( ) , align) ;
553
- if max_pixel < pixel {
554
- max_pixel = pixel;
552
+ let resolutions = crate :: platform:: resolutions ( & d. name ( ) ) ;
553
+ for r in resolutions {
554
+ let pixel =
555
+ utils:: align ( r. width as _ , align) * utils:: align ( r. height as _ , align) ;
556
+ if max_pixel < pixel {
557
+ max_pixel = pixel;
558
+ }
555
559
}
556
560
}
557
561
let shmem_size = utils:: align ( ADDR_CAPTURE_FRAME + max_pixel * 4 , align) ;
You can’t perform that action at this time.
0 commit comments