|
@@ -873,7 +873,7 @@ void our_CanvasDrawCanvas(laBoxedTheme *bt, OurPaint *unused_c, laUiItem* ui){
|
|
|
int W, H; W = ui->R - ui->L; H = ui->B - ui->U;
|
|
|
tnsFlush();
|
|
|
|
|
|
- if (!e->OffScr || e->OffScr->pColor[0]->Height != ui->B - ui->U || e->OffScr->pColor[0]->Width != ui->R - ui->L){
|
|
|
+ if (!e->OffScr || e->OffScr->pColor[0]->Height != H || e->OffScr->pColor[0]->Width != W){
|
|
|
if (e->OffScr) tnsDelete2DOffscreen(e->OffScr);
|
|
|
e->OffScr = tnsCreate2DOffscreen(GL_RGBA16F, W, H, 0, 0, 0);
|
|
|
}
|