mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-09 19:03:29 +00:00
huh
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@653 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -106,8 +106,8 @@ MwLL MwLLCreate(MwLL parent, int x, int y, int width, int height) {
|
|||||||
|
|
||||||
if(px == MwDEFAULT) px = 0;
|
if(px == MwDEFAULT) px = 0;
|
||||||
if(py == MwDEFAULT) py = 0;
|
if(py == MwDEFAULT) py = 0;
|
||||||
if(width < 1) width = 1;
|
if(width < 2) width = 2;
|
||||||
if(height < 1) height = 1;
|
if(height < 2) height = 2;
|
||||||
|
|
||||||
if(parent == NULL) {
|
if(parent == NULL) {
|
||||||
r->display = XOpenDisplay(NULL);
|
r->display = XOpenDisplay(NULL);
|
||||||
@@ -292,8 +292,8 @@ void MwLLSetXY(MwLL handle, int x, int y) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MwLLSetWH(MwLL handle, int w, int h) {
|
void MwLLSetWH(MwLL handle, int w, int h) {
|
||||||
if(w < 1) w = 1;
|
if(w < 2) w = 2;
|
||||||
if(h < 1) h = 1;
|
if(h < 2) h = 2;
|
||||||
|
|
||||||
XResizeWindow(handle->display, handle->window, w, h);
|
XResizeWindow(handle->display, handle->window, w, h);
|
||||||
|
|
||||||
|
|||||||
@@ -208,6 +208,7 @@ static void frame_draw(MwWidget handle) {
|
|||||||
area = r.height - MwDefaultBorderWidth(handle) * 2;
|
area = r.height - MwDefaultBorderWidth(handle) * 2;
|
||||||
ent = area / MwTextHeight(handle, "M");
|
ent = area / MwTextHeight(handle, "M");
|
||||||
|
|
||||||
|
|
||||||
for(i = st; i < arrlen(lb->list) && i < st + ent; i++) {
|
for(i = st; i < arrlen(lb->list) && i < st + ent; i++) {
|
||||||
int selected = lb->selected == i ? 1 : 0;
|
int selected = lb->selected == i ? 1 : 0;
|
||||||
int j;
|
int j;
|
||||||
|
|||||||
Reference in New Issue
Block a user