projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update resource pixmap settings even if asset not drawn
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
trackcanvas.C
diff --git
a/cinelerra-5.1/cinelerra/trackcanvas.C
b/cinelerra-5.1/cinelerra/trackcanvas.C
index 47edc557ddc370c9307c6a42709904f6ccbe4204..061545bac18728ba5f25be967788c789a304367f 100644
(file)
--- a/
cinelerra-5.1/cinelerra/trackcanvas.C
+++ b/
cinelerra-5.1/cinelerra/trackcanvas.C
@@
-797,15
+797,14
@@
void TrackCanvas::draw_resources(int mode,
if(pixmap_w && pixmap_h)
{
// Create pixmap if it doesn't exist
if(pixmap_w && pixmap_h)
{
// Create pixmap if it doesn't exist
- ResourcePixmap* pixmap = create_pixmap(edit,
- edit_x,
- pixmap_x,
- pixmap_w,
- pixmap_h);
+ ResourcePixmap* pixmap = create_pixmap(edit, edit_x,
+ pixmap_x, pixmap_w, pixmap_h);
// Resize it if it's bigger
// Resize it if it's bigger
- if(pixmap_w > pixmap->pixmap_w ||
-
pixmap_h > pixmap->pixmap_h)
+ if(
pixmap_w > pixmap->pixmap_w ||
+ pixmap_h > pixmap->pixmap_h)
pixmap->resize(pixmap_w, pixmap_h);
pixmap->resize(pixmap_w, pixmap_h);
+ pixmap->update_settings(edit, edit_x, edit_w,
+ pixmap_x, pixmap_w, pixmap_h);
// Draw data
if( current->show_assets() )
pixmap->draw_data(this,
// Draw data
if( current->show_assets() )
pixmap->draw_data(this,