mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 10:35:11 -04:00
Scale up servers table default column widths with DPI
This commit is contained in:
parent
dd7b1c1bca
commit
3584522e8f
@ -1090,6 +1090,7 @@ static struct LWidgetVTABLE ltable_VTABLE = {
|
||||
LTable_MouseWheel, /* Wheel */
|
||||
};
|
||||
void LTable_Init(struct LTable* w, FontDesc* rowFont) {
|
||||
int i;
|
||||
w->VTABLE = <able_VTABLE;
|
||||
w->Columns = tableColumns;
|
||||
w->NumColumns = Array_Elems(tableColumns);
|
||||
@ -1098,6 +1099,10 @@ void LTable_Init(struct LTable* w, FontDesc* rowFont) {
|
||||
w->ScrollbarWidth = Display_ScaleX(10);
|
||||
w->GridlineWidth = Display_ScaleX(2);
|
||||
w->GridlineHeight = Display_ScaleY(2);
|
||||
|
||||
for (i = 0; i < w->NumColumns; i++) {
|
||||
w->Columns[i].width = Display_ScaleX(w->Columns[i].width);
|
||||
}
|
||||
}
|
||||
|
||||
void LTable_Reset(struct LTable* w) {
|
||||
|
10
src/Window.c
10
src/Window.c
@ -2947,7 +2947,7 @@ static void JNICALL java_onLowMemory(JNIEnv* env, jobject o) {
|
||||
/* TODO: Low memory */
|
||||
}
|
||||
|
||||
static const JNINativeMethod methods[19] = {
|
||||
static const JNINativeMethod methods[18] = {
|
||||
{ "processKeyDown", "(I)V", java_processKeyDown },
|
||||
{ "processKeyUp", "(I)V", java_processKeyUp },
|
||||
{ "processKeyChar", "(I)V", java_processKeyChar },
|
||||
@ -2967,9 +2967,9 @@ static const JNINativeMethod methods[19] = {
|
||||
{ "processOnPause", "()V", java_onPause },
|
||||
{ "processOnDestroy", "()V", java_onDestroy },
|
||||
|
||||
{ "processOnGotFocus", "()V", java_onGotFocus },
|
||||
{ "processOnLostFocus", "()V", java_onLostFocus },
|
||||
{ "processOnLowMemory", "()V", java_onLowMemory }
|
||||
{ "processOnGotFocus", "()V", java_onGotFocus },
|
||||
{ "processOnLostFocus", "()V", java_onLostFocus },
|
||||
{ "processOnLowMemory", "()V", java_onLowMemory }
|
||||
};
|
||||
|
||||
void Window_Init(void) {
|
||||
@ -2986,7 +2986,7 @@ void Window_Init(void) {
|
||||
|
||||
void Window_Create(int width, int height) {
|
||||
Window_Exists = true;
|
||||
/* actual window creation is done when processSurfaceCreated is called */
|
||||
/* actual window creation is done when processSurfaceCreated is received */
|
||||
}
|
||||
|
||||
void Window_SetTitle(const String* title) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user