1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

- removed unnecessary include of WINGsP.h in some places

- smaller space between rows of text in WMText
This commit is contained in:
dan
2002-11-04 20:29:47 +00:00
parent 5e37991b6c
commit 4f80ec9178
10 changed files with 8 additions and 22 deletions

View File

@@ -1293,9 +1293,6 @@ main(int argc, char **argv)
testDragAndDrop(scr);
testText(scr);
testFontPanel(scr);
testList(scr);
#if 0
testColorPanel(scr);
testScrollView(scr);

View File

@@ -743,7 +743,7 @@ _getSibling:
if (tPtr->flags.ownsSelection) {
XRectangle rect;
if ( sectionWasSelected(tPtr, tb, &rect, s)) {
if (sectionWasSelected(tPtr, tb, &rect, s)) {
tb->selected = True;
XFillRectangle(dpy, tPtr->db, WMColorGC(scr->gray),
rect.x, rect.y, rect.width, rect.height);
@@ -1472,7 +1472,8 @@ layOutLine(Text *tPtr, myLineItems *items, int nitems, int x, int y)
} else {
font = (tPtr->flags.monoFont)?tPtr->dFont : tb->d.font;
max_d = WMAX(max_d, abs(font->height-font->y));
/*max_d = WMAX(max_d, abs(font->height-font->y));*/
max_d = 2;
line_height = WMAX(line_height, font->height + max_d);
text = &(tb->text[items[i].begin]);
len = items[i].end - items[i].begin;
@@ -2346,7 +2347,8 @@ handleTextKeyPress(Text *tPtr, XEvent *event)
goto L_imaGFX;
if(tPtr->tpos==0) {
L_imaGFX: if(tb->prior) {
L_imaGFX:
if(tb->prior) {
tPtr->currentTextBlock = tb->prior;
if(tPtr->currentTextBlock->graphic)
tPtr->tpos = 1;
@@ -2367,7 +2369,8 @@ L_imaGFX: if(tb->prior) {
if(tb->graphic)
goto R_imaGFX;
if(tPtr->tpos == tb->used) {
R_imaGFX: if(tb->next) {
R_imaGFX:
if(tb->next) {
tPtr->currentTextBlock = tb->next;
tPtr->tpos = 0;
if(!tb->next->first && tb->next->used>0)

View File

@@ -48,7 +48,6 @@
#include "xdnd.h"
#endif
#include "wsound.h"
#include <WINGs/WINGsP.h>
/*

View File

@@ -34,8 +34,6 @@
#include <wraster.h>
#include <WINGs/WINGsP.h>
#include "WindowMaker.h"
#include "screen.h"
#include "texture.h"

View File

@@ -51,8 +51,6 @@
#include <wraster.h>
#include <WINGs/WINGsP.h>
#include "WindowMaker.h"
#include "wcore.h"
#include "framewin.h"

View File

@@ -56,8 +56,6 @@
#include "wsound.h"
#include <WINGs/WINGsP.h>

View File

@@ -32,8 +32,6 @@
#include <wraster.h>
#include <WINGs/WINGsP.h>
#include "WindowMaker.h"
#include "GNUstep.h"
#include "texture.h"

View File

@@ -43,8 +43,6 @@
#include "stacking.h"
#include "text.h"
#include <WINGs/WINGsP.h>
/****** Global Variables ******/

View File

@@ -368,8 +368,7 @@ textRefresh(WTextInput *wtext)
XFillRectangle(dpy, wtext->core->window, wtext->regGC,
x1, y1, x2-x1, y2-y1);
/* Draw the selected text... use invGC so it will be the
* opposite color as the filled rectangle */
/* Draw the selected text. Inverse bg and fg colors for selection */
WMDrawImageString(scr->wmscreen, wtext->core->window,
scr->white, scr->black, wtext->font, x1, y1, ptr,
(ep - sp));

View File

@@ -50,8 +50,6 @@
#include "kwm.h"
#endif
#include <WINGs/WINGsP.h>
extern WPreferences wPreferences;
extern XContext wWinContext;