mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
add a one pixel gap between each line in textboxes (main game only)
This commit is contained in:
committed by
Terry Cavanagh
parent
2807524c78
commit
cc1528aacc
@@ -5,7 +5,7 @@
|
||||
#include "Font.h"
|
||||
#include "UTF8.h"
|
||||
|
||||
textboxclass::textboxclass(void)
|
||||
textboxclass::textboxclass(int gap)
|
||||
{
|
||||
w = 0;
|
||||
h = 0;
|
||||
@@ -19,6 +19,7 @@ textboxclass::textboxclass(void)
|
||||
r = 0;
|
||||
g = 0;
|
||||
b = 0;
|
||||
linegap = gap;
|
||||
|
||||
flipme = false;
|
||||
|
||||
@@ -132,7 +133,7 @@ void textboxclass::resize(void)
|
||||
|
||||
// 16 for the borders
|
||||
w = max + 16;
|
||||
h = lines.size()*font::height(print_flags) + 16;
|
||||
h = lines.size()*(font::height(print_flags) + linegap) + 16 - linegap;
|
||||
}
|
||||
|
||||
void textboxclass::addline(const std::string& t)
|
||||
|
||||
Reference in New Issue
Block a user